cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AhmadHammoud85
New Member

Auto assign tickets

Dears, 

 

Please need help in auto assigning tickets, Thanks
for example in category set to Server in Createnewticket form

Auto Assign it to User4@example.com in Editticket form

1.PNG2.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
PavanKumar
Responsive Resident
Responsive Resident

Hi @AhmadHammoud85 ,

 

I assume Category is dropdown field and Assigned to is the text field in your canvas app. if my assumption is correct then you can achieve the requested functionality as below:

 

onChange property of Dropdown write expression as :

 

Switch(dropdown1.selected.value,"Server",Set(varAssignedTo,"UserServer@email.com","Printer",Set(varAssignedTo,"UserPrinter@email.com",.............)

you can add as many as required.

 

In the Text property of Assigned to component set it as varAssignedTo.

 

-------------------------------------------------------------------------------------------

if this answers your question mark it as verified and give it a thumbsup

Regards,

Pavan Kumar Garlapati

View solution in original post

2 REPLIES 2
PavanKumar
Responsive Resident
Responsive Resident

Hi @AhmadHammoud85 ,

 

I assume Category is dropdown field and Assigned to is the text field in your canvas app. if my assumption is correct then you can achieve the requested functionality as below:

 

onChange property of Dropdown write expression as :

 

Switch(dropdown1.selected.value,"Server",Set(varAssignedTo,"UserServer@email.com","Printer",Set(varAssignedTo,"UserPrinter@email.com",.............)

you can add as many as required.

 

In the Text property of Assigned to component set it as varAssignedTo.

 

-------------------------------------------------------------------------------------------

if this answers your question mark it as verified and give it a thumbsup

Regards,

Pavan Kumar Garlapati

@PavanKumarThanks for your prompt replay

in my case:

Form1 Createticket: Category type is a combobox in a card 

Form2 Edit Ticket: Assigned to also combobox in a card and searchable to get emails 

Can we set the assigned to values on change to the list in sharepoint?

 

Aprreciate your help

Regards,

 

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (1,895)