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
Raju KorotanaRaju Korotana 

Enhanced Data Grid Defaults

I am trying to default a lookup field on my child record using app exchange enhanced data grid application but it is not working.  I can default the record type and parent ID but not the lookup.  

Steps: I add the lookup to my list fields

FX5__Job__r.Treatment_Wellbore__c <<- this is in my list view

and my code for new record is

{
"entityApiName":"FX5__Ticket__c",
"navigationLocation": "LOOKUP",
"defaultFieldValues": {"FX5__Job__c" : "#parentrecordid#",
 "RecordTypeId" : "012f4000000JmLYAA0",
"Treatment_Design__c" : "#FX5__Job__r.Treatment_Wellbore__c#"}
}

when i use the new User-added imagebutton i get error

Looks like there's a problem.
Unfortunately, there was a problem. Please try again. If the problem continues, get in touch with your administrator with the error ID shown here and any other related details.
Error ID: 503534760-55543 (-1065292068)

 
AnudeepAnudeep (Salesforce Developers) 
The underlying error message for this error Id is -  
'InvalidIdException: id Burlington Textiles Weaving Plant Generator must be 15 characters'

Can you try changing the recordtypeid from 012f4000000JmLYAA0 to 012f4000000JmLY? 

If it doesn't help, please log a case with support and provide the error Id

Error ID: 503534760-55543 (-1065292068)

Let me know if this helps. If it does, please mark this answer as Best. It may help others in the community. Thank You!