Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Updating fields in account from another entity

Posted on by Microsoft Employee

I created a different entity where I am uploading 2 excel files. From these 2 files I want to update some fields in my Account Entity. I upload these 2 files twice a year. I was thinking doing a workflow but is not working. Any ideas?

The unique identifier will be the account code and each account has an account code. Each line in the excel document will update one account ..

Example 

2017_2D00_12_2D00_21_5F00_16_2D00_00_2D00_25.png

*This post is locked for comments

  • Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: Updating fields in account from another entity

    Where does the Invalid Argument show. Don't see it in your screenshot

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Updating fields in account from another entity

    2018_2D00_01_2D00_05_5F00_17_2D00_27_2D00_18.png

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Updating fields in account from another entity

    I do have a reference the "account code" but when I am trying to create the workflow I get this error "Invalid argument"

  • Temmy Wahyu Raharjo Profile Picture
    Temmy Wahyu Raharjo 2,914 on at
    RE: Updating fields in account from another entity

    Where do you upload this excel file? You mean you attached this excel or what?

    So basically my idea to solve your problem:

    1. Make a plugin that will trigger if you attached the excel.

    2. Read the excel file.

    3. Update the contact based on the excel you read.

  • Suggested answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Updating fields in account from another entity

    Then you need to write a custom code (plugin/ workflow) on create of your other entity. Within the custom code, you need to first retrieve the account based on the account number field and then update that account.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Updating fields in account from another entity

    It’s not my guid, it’s just an account number that happens to be a field in my account entity. In this other entity I am importing a csv file with the sales (year to date) related to the accounts (using the account number as the relationship to the account entity)

  • Suggested answer
    Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: Updating fields in account from another entity

    Is the account code field a numeric field or is it the Guid of the account record (accountId)?

    If it's a Guid, then the workflow logic should work for you.

    If it's a numerical value you will probably have to use an Action or Custom Workflow Activity.

    Hope this helps.

  • Suggested answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Updating fields in account from another entity

    Hi,

    If you have an account reference (lookup field on those 2 entities) then you can trigger a workflow on create/update of those 2 entities and then update the account reference with the relevant fields.

    If you do not have account reference on those 2 entities then you need write some custom code to first retrieve the account and then update the details.

    Hope this helps.

  • Emre GULCAN Profile Picture
    Emre GULCAN 2,379 on at
    RE: Updating fields in account from another entity

    Hi Atapia,

    As I understood, you need to update your account data from excel, am I right?

    If yes, you need develop custom workflow or plugin code and read excel file from your entity and update each account data with using excel data.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans