Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Task - Error with custom field look-up (contact

Posted on by 16

Dear Community,a

We have created a custom field within the task entity to have an additional look-up with a contact record.

The default "regarding" field of the task is used to link the task to an existing opportunity. But we need a second field to link to a contact record.

However, unfortunately, we´re receiving an error when trying to fill the custom lookup field with the id of an existing contact record. Here is the API request and some details we´re currently using.

Details:

entity = Task
field(custom) = degiv_contactlookup

Request:

{"statecode":"0","ownerid@odata.bind":"/systemusers(bc19c5e8-e75b-eb11-bb24-000d3ab4f625)","subject":"Portal: Terminanfrage - Doppelhaushälfte Frankfurt mit Nießbrauch fgdgdr Test ln","description":"Appointment day: Monday, Appointment time: Morning (09:00-12:00), Text: , Investor contact reference ID: 29ad56c4-fe6e-ec11-8943-000d3ab32648","regardingobjectid_opportunity@odata.bind":"/opportunities(0d99212c-9082-ec11-8d21-000d3adf9945)","degiv_contactlookup@odata.bind":"/contacts(29ad56c4-fe6e-ec11-8943-000d3ab32648)","createdon":"2022-03-09T21:35:51","modifiedon":"2022-03-09T21:35:51"}


Thank you in advance for your help.

  • Suggested answer
    Mohsin Ali Profile Picture
    Mohsin Ali 3,610 on at
    RE: Task - Error with custom field look-up (contact

    To set lookup field. Please refer below:

    var taskObj = new Entity("task");

    taskObj (custom) = new EntityReference("contact",degiv_contactlookup);

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans