Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum

Setting the transactioncurrencyid from one entity to be the same as another entity

Posted on by 40

Hello,

I have a question.  We have one entity which contains our Expenses listed by date, which the user can enter a currency depending on what country the expenses were incurred in.  The currency is displayed on each line item (i.e. USD, EURO, AUD etc).  Call this Entity 1.

Another entity (Summary page) display the totals of the expenses listed above, but always displays the total as US dollars - Call this Entity 2.  How can I set entity 2 transactioncurrencyid to be the same as entity 1?

Cheers,

Geoff.

  • LuHao Profile Picture
    LuHao 40,872 on at
    RE: Setting the transactioncurrencyid from one entity to be the same as another entity

    Hi partner,

    Is your issue solved? Are there any other problems?

    Don't forget to close this theme by clicking Yes to mark the verified answer.

    7853.PNG

    This will help other users with the same theme.

    Thanks.  

  • Verified answer
    LuHao Profile Picture
    LuHao 40,872 on at
    RE: Setting the transactioncurrencyid from one entity to be the same as another entity

    Hi partner,

    Entity2 is updated according to entity1, and the relationship between entity1 and entity2 is N:1.

    We can use the workflow to do it.

    Take "opportunity" and "opportunity line" as examples. They are very similar to your needs. 

    Opportunity is entity2, opportunity line is entity1. The relationship between opportunity line and opportunity is N:1.

    1. Create a workflow for the Opportunity Line (entity1). Check As an on-demand process, select Scope as Organization, check Start When as Record is created and Record fields change, click Select to select Currency.

    7356.PNG    32887.PNG

    2. Add an Update Record. Select Update as Opportunity (entity2), click Set Properties.

    1070.PNG    52187.PNG

    3. Select the Currency field of the Opportunity Line on the right and set it to the Currency field on the left.

    4604.PNG

    4. Activate the workflow. Go to Advanced Find, select Look for as Opportunity Line (entity1), set the filter conditions to filter out entity1 which entity2 will be set by. Click Result.

    3681.PNG

    5. Select records, click Run Workflow, and select the workflow you created.

    40847.PNG

    In addition, when creating entity1 and modifying the Currency field of entity 1, this workflow can also be triggered to set the Currency field of entity2.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans