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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

How to run post "packing slip generate" by Execute Action in Power Automate?

(0) ShareShare
ReportReport
Posted on by 845

I would like to be able to run this method with the parameter "Delivery now" from Power Automate and Executon action connector?

I found I need to work with a data entity, in this case = SalesOrderLineV2Entity, and use SysODataAction.

However, I can't find a method that I can refer to.. Could anyone suggest how to do this?

Sales order view:

020033268.png

pick and pack form view:

567821.png

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    305,150 Super User 2026 Season 1 on at

    HI Shooowtek,

    Out of the box, there is no public action on a data entity to post a packing slip. At least, I haven't seen it myself. There are several parameters required to be able to post the correct quantity on the correct date. If you look at the form for the packing slip posting, which you partly shared as screenshot, you can see what all is related to do the correct posting.

    If you need something for particular scenarios, you can develop your own data entity action. You can read more about actions on my blog: Let your Operations Flow – Part 8 - Dynamicspedia

  • Shooowtek Profile Picture
    845 on at

    Hello Andre,

    Thank you for your reply. 

    I've looked over your suggestion, but I'm still a little confused about the topic.

    Could you please tell me which data entity to use or which table I should use to create a custom one?

  • André Arnaud de Calavon Profile Picture
    305,150 Super User 2026 Season 1 on at

    Hi Shooowtek,

    I think, you should think about the whole design yourself. The data entity action should fill all tables and fields currently available on the Post packing slip form. Then it can be posted. If you have all line information in the field 'Deliver now', and you want to use the current date as posting date, it would be possible to create a data entity using the table SalesTable and then write your own 'execute action' method with all logic.

  • Shooowtek Profile Picture
    845 on at

    Thanks Andre,

    I wrote some code and unfortunately my method is not available in the Execute action connector in PA. What could be the reason?

    public class mySalesTableEntity extends common
    {
        [SysODataAction("Post Packing Slip", true)]
        public void postPackingSlip(SalesId _salesId)
        {
            SalesTable salesTable;
            CustPackingSlipJour custPackingSlipJour;
            TransDate packingSlipDate =  DateTimeUtil::getToday(DateTimeUtil::getUserPreferredTimeZone());
            SalesFormLetter_PackingSlip salesFormLetter_PackingSlip;
    
            ttsbegin;
            salesTable = SalesTable::find(_salesId);
    
            if(salesTable && salesTable.SalesStatus == SalesStatus::Backorder)
            {
                salesFormLetter_PackingSlip = SalesFormLetter::construct(DocumentStatus::PackingSlip);
    
                salesFormLetter_PackingSlip.update(salesTable, packingSlipDate, SalesUpdate::DeliverNow, AccountOrder::None, false, false);
            }
    
            if(salesFormLetter_PackingSlip.parmJournalRecord().TableId == tableNum(CustPackingSlipJour))
            {
                custPackingSlipJour = salesFormLetter_PackingSlip.parmJournalRecord();
            }
            ttscommit;
        }
    
    }

    7704363.png

  • André Arnaud de Calavon Profile Picture
    305,150 Super User 2026 Season 1 on at

    Hi Shooowtek,

    Did you fully build you model (not only the solution/project) and completed a database sync?

  • Alex VN Profile Picture
    1,994 on at

    Hi,

    Have you try to test the Entity odata endpoint?

    [finopsURL]/data/mySalesTableEntity/Microsoft.Dynamics.DataEntities.postPackingSlip.

    Please also try to restart IIS, do entity refresh to update metadata and ensure it is available on entity list.

    Regards,

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 804

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 639 Super User 2026 Season 1

#3
Subra Profile Picture

Subra 528

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans