web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Update data in production environment

(0) ShareShare
ReportReport
Posted on by

Hi All

I have a requirement to update a filed value in the sales and marketing module in D365 FO. Usually through Open in Excel utility ,used to update. But the particular filed ,am unable to update through the utility

I am trying to update a prospect --> Type ID -->from Customer Pros to Customer. When I am trying to do that, I get following error message.

                  Cannot create prospect of type customer or vendor directly.

Please assist in providing scripts for to update manually through code.

Thanks

I have the same question (0)
  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hello Heshu,

    What field value do you plan to update?

    Can you provide some additional information on that?

    Many thanks,

    Ludwig

  • André Arnaud de Calavon Profile Picture
    301,020 Super User 2025 Season 2 on at

    Hi Heshu,

    What is the reason to update the type ID field? How many records do you need to update?

  • Community Member Profile Picture
    on at

    Hi Ludwig. I need to update Type ID since the customer is created already. Later a prospect was created. I managed to link prospect to the existing customer. But since we assume it as converted customer, need to change the Type ID as Customer. Its for around 5 records.  Is it possible to write a script to update the same.

  • Community Member Profile Picture
    on at

    Hi Andre

    5 records to be upda

    Thanks

  • Suggested answer
    André Arnaud de Calavon Profile Picture
    301,020 Super User 2025 Season 2 on at

    Hi Heshu,

    There is a manual workaround possible.

    Delete the prospects which are wrong (only 5). The customers will remain in the system. Repeat the next steps for each prospect.

    Create a dummy prospect. Then convert this dummy to a customer. When it is a customer, on the prospect, change the party association to the party linked to the real customer. Then you can delete the dummy customer. In this way, the type is 'Customer' on the prospect.  

  • Community Member Profile Picture
    on at

    Hi Andre

    Thank you for the workaround. But we have an integrated solution where we can delete the prospect. So that's why need to update on the same prospect.

    Thanks

  • André Arnaud de Calavon Profile Picture
    301,020 Super User 2025 Season 2 on at

    In that case, you have to go for a customization or runnable class to correct the data. Check the standard process for converting the prospect to a customer, so you don't miss anything to prevent data corruption.

  • Community Member Profile Picture
    on at

    Ok thanks Andre.  I will check for runnable class.. I haven't done much development. But will check.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 646 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 529 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans