Skip to main content

Notifications

Business Central forum
Answered

Getting issues while adding Sales Order Dimensions through API using Power Automate and Postman

Posted on by 560
Hello Guys,
      I have recently faced an issue while adding Sales order Dimensions through Business central Standard API from Power Automate and gone through the below error. 
        
     I have created a custom API page to replicate the same scenario but no luck and encountered into the below error.
 
       
     
    Is there any other way to add dimensions through custom API or Power Automate?   
 
   Any help on this would be much appreciated. Thanks in advance
 
Thanks,
Tamilarasu Arunachalam
  • Verified answer
    Getting issues while adding Sales Order Dimensions through API using Power Automate and Postman
    Thanks for your answers guys YUN ZHU and GERARDO DANIEL RENTERIA GARCIA. but i couldn't able to write the dimensions using the default Business Central connector. So, I used the HTTP connector and accomplished the same.
     
    Please refer the Microsoft Doc below for reference.
     
     
    May be this would help others who are facing the issue which i was faced
     
    Thanks,
    Tamilarasu Arunachalam
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 69,510 Super User 2024 Season 2 on at
    Getting issues while adding Sales Order Dimensions through API using Power Automate and Postman
    Hi, you can do it using the standard API below. But "parentId" and "parentType" are required.
    https://api.businesscentral.dynamics.com/v2.0/d8f36038-1f93-4543-affc-5dc92b6ee871/Sandbox223/api/v2.0/companies(828b5edb-4219-ee11-9cc3-6045bde9ba40)/salesOrders(4894cbce-fa2f-ee11-bdf7-6045bd6379b8)/dimensionSetLines
     
    "parentId" is easier to understand, it is the system Id of Sales Order.
     
    "parentType", I mentioned in the post below.
     
    Hope this can give you some hints.
    Thanks.
    ZHU
  • gdrenteria Profile Picture
    gdrenteria 9,387 Most Valuable Professional on at
    Getting issues while adding Sales Order Dimensions through API using Power Automate and Postman

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 16th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,522 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,441 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans