Build a Script to set break mode and Away status on some users

Hugo_Sycom

Gold Partner
Advanced Certified
Joined
Jan 12, 2023
Messages
43
Reaction score
13
Hello Community and 3CX,

i need some help or input to create a CFD script triggered by a dial code to perfom 2 actions on same script:
- set a specific departement to Break mode
- set 2 specific users(others than i use to dial the code) to Aways presence status.

I am able to create successfully the 2 script independently, but now my knowledge is not enough to merge that into only 1 script.
my goal is to trigger the 2 actions above with only 1 dial code.
What i did is i have created the 2 scripts independently and with 2 different dial codes it works as expected.
then i tried to copy all the content after C# "namespace xyz" and past is at the end of the other script, but it doesn't work
:)

have some one an input about which part i should copy from one script to other?
it's clear it's pure C# language knowledge, but i don't have it.

thanks for your help
BR
Hugo
 
We can help.
 
Hello Hugo_Sycom,

have you been able to resolve your question about the 'multiple' settings under one number ?

Paulo
 
Hello Paulo, for the moment no,
i still don't know how to merge 2 "instructions" in C#.

@ConceptsWeb what Means DM?

thanks
 
  • Like
Reactions: Evolute IT
General Direct Message trigger.
1778046433109.png
 

Members Online Now

Forum statistics

Threads
111,832
Messages
589,285
Members
164,662
Latest member
DejanMDS