Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Create a Note Record in CRM from Dynamics 365 Portal using JavaScript

(0) ShareShare
ReportReport
Posted on by 1,825

Hi Experts,


I am using "WEB FORM STEP",  I have a requirement to have multiple attachment controls, individual controls for different documents.  I am aware about the attachments in portal form but It adds only one attachment control in form.

Is there any OOB way to achieve this?

I am trying to add a HTML resource and with multiple attachment controls and want to create a note records for each attachments.  How to create a record using JavaScript from portal in CRM as this will be available to end user.


Thanks in Advance

*This post is locked for comments

  • Hemant Kumar Sahu Profile Picture
    Hemant Kumar Sahu 1,825 on at
    RE: Create a Note Record in CRM from Dynamics 365 Portal using JavaScript

    Thanks Sayed, I already did this.

    But my requirement is to have multiple controls.

  • Hemant Kumar Sahu Profile Picture
    Hemant Kumar Sahu 1,825 on at
    RE: Create a Note Record in CRM from Dynamics 365 Portal using JavaScript

    Thanks Nicholas for valuable comments.

    Let me try the second approach, custom server side code .

    Thanks

    Hemant

  • Suggested answer
    Syed Ibrahim Profile Picture
    Syed Ibrahim 6,257 on at
    RE: Create a Note Record in CRM from Dynamics 365 Portal using JavaScript

    Enable "Allow Multiple Files" in the attachment sections in the form.

  • Suggested answer
    Nicholas Hayduk Profile Picture
    Nicholas Hayduk 2,863 on at
    RE: Create a Note Record in CRM from Dynamics 365 Portal using JavaScript

    Hi Hemant,

    As Arun stated, there is the "Allow Multiple Files" option on the Web Form Step, however this doesn't generate multiple controls in the form; you still get one form input, but within that one form input you can select multiple files.

    Your other OOB option is adding the Notes to the form, and using metadata to enable the edit capabilities:

    docs.microsoft.com/.../configure-notes

    Otherwise, if you want custom code to do it, you'll have to have a web service that sits outside of Portals to accept your requests and talks to Dynamics 365, since there is no OOB API that you can use in JavaScript to create or edit records.  I discussed the technique in an article for MSDynamicsWorld:

    msdynamicsworld.com/.../extending-microsoft-dynamics-365-portals-custom-server-side-code

    Nick

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Create a Note Record in CRM from Dynamics 365 Portal using JavaScript

    Dont know if you have already tried this,

    Under the 'Additional Functionality' for a Web Form Step, there is 'File attachment' section, and you have a check box field for 'Attach File' and 'Allow Multiple Files'.

    Try if this solves your problem.

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,466 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans