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
ash ash 7ash ash 7 

Update a Custom Object Record (MD relation ship with Case) based on Case > Case Number record

Hi All ,

     This is my first post post in the forum  :)

      I am trying to create a flow in salesforce which will create a new record in Custom Object (Question) . Custom object has a M-D relationship with Case object.

     My use Case is : Flow will be trigged from a button which has CaseNumber in it , I will check if Question object has a record with given caseNumber , if not create a new record in Question.
Error I am getting :
Error element caseExists (FlowRecordLookup).
This error occurred when the flow tried to look up records: FROM probingQuestions__c WHERE ((Case__c = '00001000')) LIMIT 1 ^ ERROR at Row:1:Column:49 invalid ID field: 00001000. For details

Following is my record lookup where I am getting above error :

    User-added image    

How Should I configure the lookup . Can someone please validate if my approach to the solution is right ?
Best Answer chosen by ash ash 7
Raj VakatiRaj Vakati
Refer this link 

https://www.jitendrazaa.com/blog/salesforce/creating-lookup-field-in-flow/