Solved! Go to Solution.
Is this because the ID reference of the record isn’t issued until the form is saved?
Yes, that is exactly why. An ID is not issued until the record is created.
What you can do easily is just adjust your submit to something like the following:
SubmitForm(FormName); Patch(yourDataSource, FormName.LastSubmit, {jobReferenceField: FormName.LastSubmit.ID & FormName.LastSubmit.jobReferenceField})
This will prepend the last submitted jobReferenceField value ("/254/E5" in your example) with the ID ("34" in your example. Result is what is desired.
Give it a shot and I hope it helps.
Is this because the ID reference of the record isn’t issued until the form is saved?
Yes, that is exactly why. An ID is not issued until the record is created.
What you can do easily is just adjust your submit to something like the following:
SubmitForm(FormName); Patch(yourDataSource, FormName.LastSubmit, {jobReferenceField: FormName.LastSubmit.ID & FormName.LastSubmit.jobReferenceField})
This will prepend the last submitted jobReferenceField value ("/254/E5" in your example) with the ID ("34" in your example. Result is what is desired.
Give it a shot and I hope it helps.
Thank you that has worked !
Much appreciated! 🙂
User | Count |
---|---|
125 | |
87 | |
86 | |
75 | |
69 |
User | Count |
---|---|
216 | |
181 | |
140 | |
97 | |
83 |