Skip to main content
Solved

Trigger Action Using REST API


 

Hi all, I have a custom action on my Sales Order screen which sends an email to the customer of a selected order. Currently we are manually clicking this button for each order.

 

Is there a way to access these actions via REST API given the Order Nbr? Or alternatively is there a way to “Add Email” to an order via REST API? Thanks!

 

 

 

Best answer by matthewgerdan

@pmblake  Yes it can be made available by extending the default endpoint.

Is your action also available from the SO301000 Sales Orders screen?

If so, you could extend the salesOrder endpoint with your custom action.

Otherwise, you could add a new top-level object to the endpoint for the SO3010PL screen and add your action there.

View original
Did this topic help you find an answer to your question?

3 replies

Forum|alt.badge.img
  • Varsity I
  • 22 replies
  • Answer
  • August 9, 2024

@pmblake  Yes it can be made available by extending the default endpoint.

Is your action also available from the SO301000 Sales Orders screen?

If so, you could extend the salesOrder endpoint with your custom action.

Otherwise, you could add a new top-level object to the endpoint for the SO3010PL screen and add your action there.


jinin
Pro I
Forum|alt.badge.img+11
  • Pro I
  • 680 replies
  • August 9, 2024

Hi @pmblake ,

We can create custom actions, allowing us to perform actions through REST API calls

Refer to the below blogs,

Acumatica REST API Endpoint Action Call fails - Stack Overflow
creating an InventoryIssue via REST API | Community (acumatica.com)


RohitRattan88
Acumatica Moderator
Forum|alt.badge.img+4
  • Acumatica Moderator
  • 245 replies
  • August 12, 2024

@pmblake 

Screen(Sales Order) shown in screenshot above seems like an entry point GI or Primary List(e.g SO3010PL) or some sort of processing screen(with select box). I dont think you could/should use API for those screens.

However, for Sales Order screen(SO301000), if that action is available, you should be able to able to map this action using a custom endpoint, call that action using API.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings