Skip to main content
Solved

Fire Custom Code daily


abdallaahmed61
Varsity III
Forum|alt.badge.img+1

Hello guys,

i have a case that i want to call an API daily in a custom function i wrote.

i tried the business events but i think it dosent accept a custom code.

is there a way to call a function daily in acumatica?

Best answer by Naveen Boga

Yes, that is achievable. When you write this code in the Processing screen and schedule it.

 

The processing screen can be scheduled and it will run the process in the background.

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

12 replies

Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3381 replies
  • November 14, 2022

Hi, @abdallaahmed61  Have you created the custom code in the Processing screen?

If yes, you can schedule this screen to invoke the custom code daily basis (based on the configuration).

 


abdallaahmed61
Varsity III
Forum|alt.badge.img+1
  • Author
  • Varsity III
  • 53 replies
  • November 14, 2022
Naveen Boga wrote:

Hi, @abdallaahmed61  Have you created the custom code in the Processing screen?

If yes, you can schedule this screen to invoke the custom code daily basis (based on the configuration).

 

i dont want to press the process button, i just want to make it run in the background as backend code. is this achievable?


abdallaahmed61
Varsity III
Forum|alt.badge.img+1
  • Author
  • Varsity III
  • 53 replies
  • November 14, 2022
abdallaahmed61 wrote:

Hello guys,

i have a case that i want to call an API daily in a custom function i wrote.

i tried the business events but i think it dosent accept a custom code.

is there a way to call a function daily in acumatica?

i just want to send a message to the customers after a period of time passed after their purchases with a custom API that we use to send the messages.


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3381 replies
  • Answer
  • November 14, 2022

Yes, that is achievable. When you write this code in the Processing screen and schedule it.

 

The processing screen can be scheduled and it will run the process in the background.


abdallaahmed61
Varsity III
Forum|alt.badge.img+1
  • Author
  • Varsity III
  • 53 replies
  • November 14, 2022
Naveen Boga wrote:

Yes, that is achievable. When you write this code in the Processing screen and schedule it.

 

The processing screen can be scheduled and it will run the process in the background.

thnx i will try it.

but can u give me a sample code if u have or any related link that make a similar thing?

because i didnt do it before.


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3381 replies
  • November 14, 2022

abdallaahmed61
Varsity III
Forum|alt.badge.img+1
  • Author
  • Varsity III
  • 53 replies
  • November 15, 2022
Naveen Boga wrote:

the process screen i made cannot be scheduled do u know a solution for this ?


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3381 replies
  • November 15, 2022

Hi @abdallaahmed61  The above screenshot is not given sufficient details and I could not able to provide suggestions.

 

Can you please provide the below details?

  1. Source code that you implemented with the processing screen
  2. Screenshots of the processing screen

abdallaahmed61
Varsity III
Forum|alt.badge.img+1
  • Author
  • Varsity III
  • 53 replies
  • November 15, 2022
Naveen Boga wrote:

Hi @abdallaahmed61  The above screenshot is not given sufficient details and I could not able to provide suggestions.

 

Can you please provide the below details?

  1. Source code that you implemented with the processing screen
  2. Screenshots of the processing screen
Code In Graph
DAC SS
Screen SS

 


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3381 replies
  • November 15, 2022

Hi @abdallaahmed61  Graph Code and Screenshot of the screen is not matching!​​​​​

  • You have provided the Send SMS and Send SMS to All in the code, but in the screenshot, it is showing Assign and Assign All → Something is missing here.
  • As you do not have any parameters, your primary View should be PXProcessg View i.e ClosedList, Have you provided the same on the .aspx page?
  • In the processing screen, COPY, and Navigation buttons should not be shown.
  • Please click on the scheduler → Add button, it will take you to the scheduler screen. Please check 

 


abdallaahmed61
Varsity III
Forum|alt.badge.img+1
  • Author
  • Varsity III
  • 53 replies
  • November 17, 2022
Naveen Boga wrote:

Hi @abdallaahmed61  Graph Code and Screenshot of the screen is not matching!​​​​​

  • You have provided the Send SMS and Send SMS to All in the code, but in the screenshot, it is showing Assign and Assign All → Something is missing here.
  • As you do not have any parameters, your primary View should be PXProcessg View i.e ClosedList, Have you provided the same on the .aspx page?
  • In the processing screen, COPY, and Navigation buttons should not be shown.
  • Please click on the scheduler → Add button, it will take you to the scheduler screen. Please check 

 

i solved the problem by just putting the select column as first column and everything worked.

thnx alot for your time and effort.

u helped me alot with this task.


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3381 replies
  • November 17, 2022

@abdallaahmed61  Awesome!! Thanks for sharing the update.


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