Hello everyone,
I am currently working on my first canvas app so please be patient.
I am trying to accomplish the following:
I have a create of a record (in CRM via Canvas app). After this record is created, I would like to pass that record to a different creation, with a lookup on the record I created previously.
so I have this create:
Patch( 'Application Schedules' ; Defaults('Application Schedules') ; {Application : "Set Recipients" ; 'Status Reason' : 'Status Reason (Application Schedules)'.'Under Construction' ; Name : "Set Recipients"})
which works and creates my "Application Schedule".
Now, I need to create a "Application Schedule Parameter" which "belongs" to my previously created Schedule.
Something like this:
Patch( 'Application Schedule Parameter' ; Defaults('Application Schedule Parameter') ; {'Application Schedule Parameter'.'Application Schedule' : Previously Created Application Schedule ; })
but I have no idea how to pass the first record to the second one.
Both of these actions, need to happen in succession, not absolutely required in the same event.
Right now I am trying to accomplish this onVisible of a screen, one after the other with chaining (;;)
Please keep in mind, I have ; as a separator because I am in Austria and I cannot use ,
Any and all help would be greatly appreciated.
Thank you.
Sergiu