RE: Calling external Secured API Using Javascript
Hi Rey D,
I created a power automate with the trigger 'When a HTTP Request Received'

and I call this flow using the below JS.
var userSettings = Xrm.Utility.getGlobalContext().userSettings;
var userId = userSettings.userId;
var flowUrl = "https://prod-17.australiasoutheast.logic.azure.com:443/workflows/316d4acbd3a04c018ffa1485f1d09c3a/triggers/manual/paths/invoke?api-version=2016-06-01&sp=/triggers/manual/run&sv=1.0&sig=8IWx8Jw0Sk7F7IlxyWLbE3ciyUe5eR0YKwZMW_CtBS8";
var input = JSON.stringify({
"Account": accountId.replace("{", "").replace("}", "")
});
var req = new XMLHttpRequest();
req.open("POST", flowUrl, true);
req.setRequestHeader('Content-Type', 'application/json');
req.send(input);
So you would need something similar.
If I answer your question then please mark it as verified.
Let me know if I can provide you with more details.
Thanks
Regards,
Abdul Wahab
Power Platform/Customer Engagement Developer/Lead/Solution Architecture/Project Manager
Direct/WhatsApp: 923323281237
E-mail: abdulwahabubit@outlook.com
Skype: abdul.wahabubit
Linkedin: www.linkedin.com/.../