I am using Postman to create records in D365 via Odata is it possible to create a record on two different tables at the same time through one odata call
PS its not working that way (post method)
{ //Table#1 fields /Worker/: 22565420973,
/Encashment/: /No/,
/FromDate/: /2024-03-10T12:00:00Z/,
/Currency/: /USD/,
//Table#2 fields
/PayLeaveWithSalary/: /No/,
/VisaRequired/: /Yes/,
/LeaveId/: /MariageLeave/,
/ToDate/: /2024-03-11T12:00:00Z/
} I handled number sequence on methods but it still inserts record on the first table only. any suggestions on how to achieve that?
Do you mean that you have a custom data entity with two joined data sources? If so, it's possible. Unfortunately we can't identify the bug in your entity without any information about it.
Review the join condition, make sure that the other datasource isn't read-only etc. Check if you're getting correct data in staging. Then you can debug your entity. If the key of the other entity is the number you generate from a number sequence, this is likely a place to pay extra attention to.
Was this reply helpful?YesNo
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.