cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

Dynamics 365 F&O - Post URL dynamically in flow

I created Purchase order confirmation webservice in D365 F&O and its running sussesful with dynamic Parameters of _PurchId through Postman.

 

class MZNBZPOConfirmWebserviceClass
{
public str POConfirm(PurchId _PurchId)
{
try
{

PurchFormLetter purchFormLetter;
PurchTable purchtable = PurchTable::find(_PurchId);
;

ttsBegin;

purchFormLetter = PurchFormLetter::construct(DocumentStatus::PurchaseOrder);
purchFormLetter.update(purchtable,purchtable.PurchId,systemDateGet(),PurchUpdate::All);

ttsCommit;

result = strFmt("%1Purchase order was successfully confirmed", _PurchId);
}
catch(Exception::Error)
{
result = "Error: You do not confirm the purchase order";
}
CodeAccessPermission::revertAssert();


return result;
}

}

Webservice running succesful but when I post through Powerapps with Microsft flow. Its confirm all Purchase order but I pass parameters in attached screen shot.

 

How to Passs Paratmetes in webservice of Http with azure AD? Purchase order number dynamically change when we select another Purchase order.

Helpful resources

Announcements
firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (8,786)