web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Sending SSRS Report as excel file to multiple users

(0) ShareShare
ReportReport
Posted on by 152

Hi

multiplemails.JPG

In the above the screenshot if you select the record(circled in red) and click on Send Mail button highlighted in yellow color, it will send the SSRS report to the mail id in the primary contact.

This work only if i select one record, if we select multiple records and click on send Mail, it will send mail to the last selected record.

My requirement is when I select multiple records and click on send mail it should them the corresponding ssrs report to the corresponding contact.

How can I achieve this?

Thanks,

Nithin.

I have the same question (0)
  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hello Nithin,

    Is this an adjusted form that you shared above in your screenprint?

    Did you create the SSRS report or do you refer to a standard one?

    Best regards,

    Ludwig

  • nithinkumar_007 Profile Picture
    152 on at

    Hi Ludwig,

    I created everything from scratch including the form and ssrs report.

    Thanks,

    Nithin.

  • Suggested answer
    Sukrut Parab Profile Picture
    71,710 Moderator on at

    If it is sending email  only  to the last record then its a bug in your code. You have to loop through records and  call report run logic and email send logic with in that loop

  • Verified answer
    Pedro Tornich Profile Picture
    955 on at

    Hello,

    You will have to account for multiple selected records in your class.

    There is a helper class named MultiSelectionHelper, you can check the method main() from the LedgerJournalSave class for an example:

    public static void main(Args  args)
    {
        LedgerJournalSave     ledgerJournalSave;
        
        switch (args.dataset())
        {
            case tableNum(LedgerJournalTable):
                ledgerJournalSave   = LedgerJournalSave::newLedgerJournalTable(args.record());
                break;
    
            case tableNum(LedgerJournalTrans):
    
                ledgerJournalSave   = LedgerJournalSave::newLedgerJournalTrans(args.record());
                if (SysCountryRegionCode::isLegalEntityInCountryRegion(#easternEuropeAllandRU))
                {
                    MultiSelectionHelper helper = MultiSelectionHelper::createFromCaller(args.caller());
                    LedgerJournalTrans localLedgerJournalTrans = helper.getFirst();
                    if (localLedgerJournalTrans)
                    {
                        List localRecIds = new List(Types::Int64);
                        while (localLedgerJournalTrans)
                        {
                            localRecIds.addEnd(localLedgerJournalTrans.RecId);
                            localLedgerJournalTrans = helper.getNext();
                        }
                        ledgerJournalSave.parmMarkedTransactionsRecIdList(localRecIds);
                    }
                }
    
                break;
    
            default:
                throw error("@SYS18626");
        }
        
        if (ledgerJournalSave.prompt)
        {
            ledgerJournalSave.runOperation();
        }
    }

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 584 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 499 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 254 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans