function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Devansh Singh 9Devansh Singh 9 

how to get case id in salesforce

hello guys i am able to intergrate salesforce to servicenow bi-directional Now i want update servicenow to salesforce , I means if i update  , servicenow 's work notes that data should come in salesforce .. 

So regarding to this task i need to create a api and in those API i need to mention case id..
So plz tell me HOW TO GET CASE ID IN SALESFORCE ..
I am not very familier with salesforce..

Thanks in advanced..
SwethaSwetha (Salesforce Developers) 
HI Devansh,
You should be able to see the case Id in the URL when you open the case. Case Id starts with '500' 

Also recommend reviewing https://salesforce.stackexchange.com/questions/7520/how-to-get-case-id-of-current-case-when-button-is-clicked-on-case-page

https://developer.salesforce.com/forums/?id=9062I000000IFDOQA4

If this information helps, please mark the answer as best. Thank you
Devansh Singh 9Devansh Singh 9
Thanks Swetha , so You are working in salesforce? ...
Devansh Singh 9Devansh Singh 9
HI Swetha

How to get case comment id in salesforce? 
SwethaSwetha (Salesforce Developers) 
You can run an SOQL in the developer console 
Select Id, commentbody From casecomment where parentid='5006F00001oLRqxQAG'
Here parentId is the case id.

Related: https://help.salesforce.com/s/articleView?id=sf.code_dev_console.htm&type=5

If this information helps, please mark the answer as best. Thank you
Devansh Singh 9Devansh Singh 9
I am trying if someone tickets the case in salesforce so that case should come in servicenow .. And Now i done this integration.. 2nd thing is if someone add some work_notes in servicenow so it should come in salesforce as a internal comment...
Devansh Singh 9Devansh Singh 9
OK , so i am trying if a tickets raise in salesforce so it should come in servicenow..and i done this integration.. Now if i add some work notes in servicenow side so that should go salesforce , in comments section.. Now You got?