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
JSSI DogJSSI Dog 

Help with scontrol javascript

I'm new to javascript but with a little help, was able to develop an scontrol that creates a case from an asset, pre-populating some fields. I tried to include the Contact from the Asset on the new case, but I cannot find the correct id and name for the standard contact field. FYI - I used the following as an example, replacing Asset with Contact, without success: Asset_lkid={!Asset_ID}&Asset={!Asset_Name}. Here is my current script:



If anyone knows the id, or how I can get it, please let me know. Thanks in advance.
ChitraChitra
Try

{!Asset_Contact} and {!Asset_Contact_ID}

thanks,
Chitra
JSSI DogJSSI Dog
Thank you, but I need the Case Contact ID and Case Contact Name field id's. I have been unsuccessful using the following:

&Contact_lkid={Asset_Contact_ID}&Contact={Asset_Contact}".

I think the issue is the Case id names I have tried: Contact_lkid and Contact. Can anyone verify the correct Contact link id and Contact Name?