The code which was running earlier for creating the attachment in CRM from canvas app is not running now.
below is code snippet:
_objectid_value : BrowseGallery1.Selected.accountid,
objecttypecode : "accounts",
What is wrong in above code? I also tried by using "_objectid_type" instead of "objecttypecode" but didn't work for me.
Thanks in advance.
Solved! Go to Solution.
Below link would help you on how to create flow and call it from PowerApps passing paramaters.
Specific to notes creation, you can use below on button click or whatever:
'PowerApps-CreatenotesinD365'.Run(txtNoteTitle.Text, txtNoteDescription.Text, Regarding)
Here regarding would be guid of record to add note to.
Attached is snapshot of how flow will look like. Make sure to map yellow highlighted fields in flow.
I came here looking for the solution to my problem, adding attachments not just notes, but have resolved the issue and I hope my blog helps others.
I found an easier way to patch notes to work, use Regarding:GUID(<record-guid>) instead...
Read more here: