Fonzie
(Fonzie)
August 22, 2024, 9:48am
1
Hey EveryOne,
It’s my first question here I rarely ask questions only if I am stuck badly.
So here is my problem:
inside the Process Transaction:
I have Process:
Inside my Process I have 2 variable I did create on Variable table.
emailsSentCount
errorCount
I am use Assign activity to up the count inside the Process.
I want to use these two variables in the " end Process "
I want to use these two variables in the CloseAllAppliactions to send Report.
for that, I need to import the arguments in the Invoke CloseAllAppliactions:
But in this situation, it does not recognize them.
Is there any possible way to pass the argument\ variable in my problem?
Thanks for any helper in this situation
singh_sumit
(Sumit Singh Tariyal)
August 22, 2024, 9:56am
2
Hie @Fonzie for this create a out argument and pass the variable value through argument for the sequence block and create a variable outside the process block to store the value and increase the scope now come in the end process create a (in) direction argument to store the value …
like this
cheers Happy Automation
Fonzie
(Fonzie)
August 22, 2024, 10:05am
3
Thanks you for the replay i am really appreciate that,
but I don’t understand how I can increase you can upload images with int with increase every time like value + 1 like my problem for I can understand?
Please.
how I can increase if I make the out the variable?
@singh_sumit
singh_sumit
(Sumit Singh Tariyal)
August 22, 2024, 10:11am
4
@Fonzie so you want to write it on the excel and increase the cell count like first it write on cell E2 Then E3 like this ??
Fonzie
(Fonzie)
August 22, 2024, 10:13am
5
in my program i check if the email is sent if the email is sent and no error I increase the emailsentcount = emailsentcount + 1.
I want to pass the emailsentcount to the report in the EndProcess.
just increase normal counter and send the counter in the end to the endprocess to report how many emails are sent
HI @Fonzie
Create Arguments in the Process.Xaml with out direction.(Dont create variable here)
Create variable here Scope should be GEneral business and invoke the areguments which is inside the Process.Xaml
Now Go to the End Process,Create the In Argument and Invoke wth the Variable
@Fonzie ,
We got very easy solution for this, use Global variables. Refer this article for more information h=on how to declare, how to use etc.
Global variables are helpful in managing data and configurations that need to be accessed across various workflows of a project. In this article, we will explore the concept of global variables in UiPath, their importance, and address some frequently...
Reading time: 3 min read
Thanks,
Ashok
Fonzie
(Fonzie)
August 22, 2024, 10:38am
9
Thanks you for replay there is 1 problems:
If I each transaction init the out to be 1 how it will be counter in the end?
for example if I have 10 transaction and 8 I did sent emails and 2 have error
and in the end I want to report : 8 emails sent , 2 errors
in this way I always get 1 no ?
@Fonzie
Note :This case only possible when retry is 0
Create variables in the init state as below check the scope
Create Arguments in the Set Transaction Status Xaml as below as In/Out Direction
In success of Transaction status,Increment the Sucess Mail Count using assign activity
In the Business and system exception of Set Transaction status xaml Increment Errors as below
Now go to the EndProcess,Close All applications xaml and create 2 arguments with in Directions as below
Hope you understood!!