cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Advocate I
Advocate I

[SOLVED] Custom Connector Definition - define a value to the HTTP Request Path Parameter

Hi,

 

I've created a custom connector to connect Power Automate (Flow) with NetSuite using OAuth2.0

According to NetSuite KB, to read, update, and delete a record, the record ID needs to be included in the URL.

 

For example:

- To get an employee record 107: 

 

 

GET https://demo123.suitetalk.api.netsuite.com/services/rest/record/v1/employee/107

 

 

- To update an employee record 107's firstname with "John": 

 

 

PATCH https://demo123.suitetalk.api.netsuite.com/services/rest/record/v1/employee/107
BODY { "firstname": "John" }

 

 

 

- To delete customer record 107:

 

 

DELETE https://demo123.suitetalk.api.netsuite.com/services/rest/record/v1/employee/107

 

 

 

As you can see, record 107 is included in the URL and not a POST/GET/PATCH parameter.
The question is, how can I create a custom connector definition that accepts the last path of the URL as the field/variable that can be entered during its usage as a parameter?
Flow01.png
Jsidarta_0-1602459181417.png

 

Thanks in advance

 
1 ACCEPTED SOLUTION

Accepted Solutions
Advocate I
Advocate I

It turns out I need to put {variable} at the end of the link.

Example:

 

https://demo123.suitetalk.api.netsuite.com/services/rest/record/v1/employee/{employeeID}

 

Jsidarta_0-1602459251589.png

 

 

And the following is the result when you use it on Flow:

Jsidarta_1-1602109472823.png

 

View solution in original post

5 REPLIES 5
Advocate I
Advocate I

It turns out I need to put {variable} at the end of the link.

Example:

 

https://demo123.suitetalk.api.netsuite.com/services/rest/record/v1/employee/{employeeID}

 

Jsidarta_0-1602459251589.png

 

 

And the following is the result when you use it on Flow:

Jsidarta_1-1602109472823.png

 

View solution in original post

How did you configure your custom connector?

 

That's where I remain stuck.

 

Thanks in advance

Hi @crhodes 

 

Where did you get stuck? 

I followed the following instructions: https://docs.microsoft.com/en-us/connectors/custom-connectors/define-blank

Frequent Visitor

I have created a custom connector for NetSuite using OAuth2. I am running into an issue where I can’t get the token to refresh did you run into that issue?

Hi @ReaganRogers what you have experienced is similar to this post. Let's discuss this issue in that thread.

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Kudoed Authors
Users online (78,297)