Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
Suggested answer

Update / Insert / Delete Record in DocuRef Table

Posted on by 490

Hello Everyone,

We have a requirement to Update / Insert / Delete records from DocuRef Table. We are trying to do it using a Job.

We are uploading CSV file with Data to be uploaded in DocuRef Table. While uploading we need to check different conditions based upon the data present in CSV File and Docuref Table.

1. If the records exists within Notes Field containing different data as present in the CSV file. We will update the record with CSV File Details.

2. If the records exists within Notes Field containing same data as present in the CSV file. We will delete the record from DocuRef Table and insert new record present in the CSV File.

Can you please suggest Job for implementing the same. we have written a job and are not able to compare the field Notes with the data present in CSV File. 

pastedimage1624949750364v1.png

Error is shown as 

pastedimage1624949768923v2.png

Please guide, thank you.

  • Suggested answer
    ergun sahin Profile Picture
    ergun sahin 8,812 Super User on at
    RE: Update / Insert / Delete Record in DocuRef Table

    use "while select", delete Note part. In while you can use if clause (assignment can be required and data loss may occur if size of memo is greater than str)

    Or use query

    www.1clickfactory.com/.../

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288,513 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,862 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans