Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Advice needed for custom dialog / workflow

Posted on by 1,695

CRM2016

I have the requirement to generate a text file containing records from selected records in a view. If only one record is selected, then its a standard workflow scenario, however there may be more than one record selected. As there would be several of these files created on a daily basis, I would need to be able to set the name of the file via a dialog box.

In my head, I see it that I would select the required records from a view then run a dialog to set the output file name. Then create a list of the selected records and in code grab the info required then insert to the text file. 

I suppose if I run a dialog box, create the blank file, then fire a workflow to add to that file.

Any suggestions on how to go about this please

*This post is locked for comments

  • Verified answer
    Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: Advice needed for custom dialog / workflow

    I would take a look at the following:

    Creating a Ribbon button using Ribbon Workbench

    community.dynamics.com/.../creating-a-ribbon-button-using-ribbon-workbench-to-call-a-javascript-action

    Process.js (api to call workflows or actions)

    github.com/.../processjs

    Introduction to webapi and webapi samples

    msdn.microsoft.com/.../gg334279.aspx

    msdn.microsoft.com/.../mt742425.aspx

    Comparison of different api libraries

    community.dynamics.com/.../webapi-library-comparison-in-dynamics-365

  • Pete_N Profile Picture
    Pete_N 1,695 on at
    RE: Advice needed for custom dialog / workflow

    do you know of any examples or tutorials I can look at

  • Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: Advice needed for custom dialog / workflow

    You can also create a ribbon button, which will get all the selected records and call a JavaScript function, where you would ask for the file name, and the js process can call a workflow, action or use webapi to generate the file for you.

    You can use process.js to call workflow or action if needed.

    Remember that dialogs are being deprecated, so I would stay away from them, so that you do not have to redo your logic in a future release.

    Hope this helps.

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