New resources available on Microsoft Learn
Did you know that Microsoft Learn offers free training modules to assist you on your path to mastering Dynamics 365 for Finance and Operations? Become an expert at your own pace or share with your team to foster growth.
Dynamics 365 2019 release wave 2 plan Discover the latest updates to Dynamics 365.Release Plan | Weekly Deployment Notes
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants.Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements.
ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Talent TechTalks
I am trying to update cross company records from shared table. It is throwing below error. Could anybody will be able to solve the issue. I have added one email field on DirPartyTable, which is global table. and when this field is updated I wanted to update that email Id on my customized company specific table in all legal entities. I tried using cross company query on Post update of DirPartyTable but it is throwing error on Form.
error - The form datasource query object does not support changing its AllowCrossCompany property after the form has executed the query.
To be able to change data from a loop in multiple legal entities, you have to use the ChangeCompany command. You can find an example in the documentation: docs.microsoft.com/.../cross-company-data-modification-using-x
I am using cross comapany keyword in update query and also using Change Company keyword. But I believe DirPartyTable form is shared for all the legal entities and I am trying to update comapany specific records from there. Therefore getting this error. Please let me know if there is another way to achieve it
I missed the part where you are trying to update records in a form datasource. Can you elaborate and tell the functional requirement and what you have done so far? Can you also check if you are somewhere changing the property for allowing changing the cross company?
The functionality is, There is a field on GAB, when that field is updated I wanted to update one customized field on customer which is in my customized table. So I am using post update even on DirPartyTable and applying cross comapany update query with Change Company keyword. But it is failing and throwing above error on form. I am not changing any properties thru code
Please share the coding you used so far and mention where it is used/called.
Business Applications communities