Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Read document name from field and attach to email using workflow in dynamics 365

(0) ShareShare
ReportReport
Posted on by 25

Hello,

I used workflow elements from Kaskela for attaching word templates to an email using workflow. This was great!

My requirement is to read the template name from a field, generate specific word document and then attach to an email using workflow.

Please suggest if this can be done.

Thanks

Ashwini

*This post is locked for comments

  • Suggested answer
    StefanS365 Profile Picture
    StefanS365 3,573 Most Valuable Professional on at
    RE: Read document name from field and attach to email using workflow in dynamics 365

    Hi Ashwini,

    You could add an Option Set with the Word templates names as options. User selects an option.

    On save or with an on-demand workflow you can get the value of this option set field and then use conditions in your workflow to select/execute the right word template action.

    The rest can be done in the way I've described in my first response.

  • AshwiniShilpa Profile Picture
    AshwiniShilpa 30 on at
    RE: Read document name from field and attach to email using workflow in dynamics 365

    Hello Stefan,

    Thank you for the swift response.

    Here the requirement is to pick the word template dynamically.

    Say for a custom entity, there are 5 word templates. There are five rows in this custom entity. One of the field in custom entity has document template name. When workflow is executed, it should pick up the word template from this field, generate the document and attach to email.

    I have already tried the links suggested by you, here set word template picks up from list of templates and it cannot read value from one of the field of the custom entity.

    Please suggest how this can be achieved

  • AshwiniShilpa Profile Picture
    AshwiniShilpa 30 on at
    RE: Read document name from field and attach to email using workflow in dynamics 365

    Hello Stefan,

    Thank you for the swift response.

    Here the requirement is to pick the word template dynamically.

    Say for a custom entity, there are 5 word templates. There are five rows in this custom entity. One of the field in custom entity has document template name. When workflow is executed, it should pick up the word template from this field, generate the document and attach to email.

    I have already tried the links suggested by you, here set word template picks up from list of templates and it cannot read value from one of the field of the custom entity.

    Please suggest how this can be achieved

  • AshwiniShilpa Profile Picture
    AshwiniShilpa 30 on at
    RE: Read document name from field and attach to email using workflow in dynamics 365

    Hello Stefan,

    Thank you for the swift response.

    Here the requirement is to pick the word template dynamically.

    Say for a custom entity, there are 5 word templates. There are five rows in this custom entity. One of the field in custom entity has document template name. When workflow is executed, it should pick up the word template from this field, generate the document and attach to email.

    I have already tried the links suggested by you, here set word template picks up from list of templates and it cannot read value from one of the field of the custom entity.

    Please suggest how this can be achieved

  • AshwiniShilpa Profile Picture
    AshwiniShilpa 30 on at
    RE: Read document name from field and attach to email using workflow in dynamics 365

    Hello Stefan,

    Thank you for the swift response.

    Here the requirement is to pick the word template dynamically.

    Say for a custom entity, there are 5 word templates. There are five rows in this custom entity. One of the field in custom entity has document template name. When workflow is executed, it should pick up the word template from this field, generate the document and attach to email.

    I have already tried the links suggested by you, here set word template picks up from list of templates and it cannot read value from one of the field of the custom entity.

    Please suggest how this can be achieved

  • AshwiniShilpa Profile Picture
    AshwiniShilpa 30 on at
    RE: Read document name from field and attach to email using workflow in dynamics 365

    Hello Stefan,

    Thank you for the swift response.

    Here the requirement is to pick the word template dynamically.

    Say for a custom entity, there are 5 word templates. There are five rows in this custom entity. One of the field in custom entity has document template name. When workflow is executed, it should pick up the word template from this field, generate the document and attach to email.

    I have already tried the links suggested by you, here set word template picks up from list of templates and it cannot read value from one of the field of the custom entity.

    Please suggest how this can be achieved

  • AshwiniShilpa Profile Picture
    AshwiniShilpa 30 on at
    RE: Read document name from field and attach to email using workflow in dynamics 365

    Hello Stefan,

    Thank you for the swift response.

    Here the requirement is to pick the word template dynamically.

    Say for a custom entity, there are 5 word templates. There are five rows in this custom entity. One of the field in custom entity has document template name. When workflow is executed, it should pick up the word template from this field, generate the document and attach to email.

    I have already tried the links suggested by you, here set word template picks up from list of templates and it cannot read value from one of the field of the custom entity.

    Please suggest how this can be achieved

  • Suggested answer
    StefanS365 Profile Picture
    StefanS365 3,573 Most Valuable Professional on at
    RE: Read document name from field and attach to email using workflow in dynamics 365

    Hi Ashwini,

    With Workflow Elements you can do this as well, see How to: Rename a Generated Word Document

    kaskelasolutions.com/.../

    Create an E-mail record in your workflow and add the attachment to this record

    kaskelasolutions.com/.../

    and send the draft E-mail record

    kaskela.wordpress.com/activity-send-a-draft-email

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,403 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans