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

Service Desk app connected to a ShareList instead of the Collection

I use the Service Desk Sample app to create a new app.  In this new app I am using a SharePoint List for the main data as opposed to a Collection.  My problem is, on the Create a Ticket menu.  The Create button is not doing anything, I am assuming this is because my fields on the form do to not reference the SharePoint List.  

 

My question is, do I have to re-create the form using the SharePoint List?  I do not see any where in the fields where I can have them point to the SharePoint List.

1 ACCEPTED SOLUTION

Accepted Solutions
v-yutliu-msft
Community Support
Community Support

Hi @NaChristian ,

Do you want to use sharepoint list instead of collection as data source in Service Desk Sample app?

If so, you need to make a lot of change on this sample app.

Firstly, please check the columns in TicketsCollect1. You need to create the same columns in your sharepoint list.

Then connect your list with your app.

 

Secondly, you need to change all the controls and properties about TicketsCollect1, change their data source to your sharepoint list.

For example, in CreatenewticketPage you need to change:

1)textbox1_25,textbox1_26,textbox1_27,textbox1_28,textbox1_29

Text: CountRows(yourlistname)    //please replace with your list name

CountRows(Filter(yourlistname,Status="New"))

CountRows(Filter(yourlistname,Status="In progress"))

CountRows(Filter(yourlistname,Status="Closed"))

CountRows(Filter(yourlistname,Status="On hold"))

4105.PNG

2)Button1_1's OnSelect:

If(CreatedBy.Text="" || Dropdown_Priority.SelectedText.Priority="Select a priority" ||Dropdown_Area.SelectedText.'Account Name'="Select an area" || Subject.Text="" || Description.Text="",
    UpdateContext({msg_visible:false});UpdateContext({msg_visible:true}),
    Collect(yourlistname,Status,{ID:Text(CountRows(TicketsCollect1)+1),Owner:CreatedBy.Text,AccountName:Dropdown_Area.SelectedText.'Account Name',Priority:Dropdown_Priority.SelectedText.Priority,Subject:Subject.Text,Description:Description.Text,Status:"New", DateCreated:Text(Today())});
    
Navigate(DashboardPage, ScreenTransition.None))

 //please replace with your list name

4106.PNG

 

What's more, since all the columns in the original collection are all text type, you'd better set all the columns to text type in your list too. Or else you will need to change your original formulas a lot.

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yutliu-msft
Community Support
Community Support

Hi @NaChristian ,

Do you want to use sharepoint list instead of collection as data source in Service Desk Sample app?

If so, you need to make a lot of change on this sample app.

Firstly, please check the columns in TicketsCollect1. You need to create the same columns in your sharepoint list.

Then connect your list with your app.

 

Secondly, you need to change all the controls and properties about TicketsCollect1, change their data source to your sharepoint list.

For example, in CreatenewticketPage you need to change:

1)textbox1_25,textbox1_26,textbox1_27,textbox1_28,textbox1_29

Text: CountRows(yourlistname)    //please replace with your list name

CountRows(Filter(yourlistname,Status="New"))

CountRows(Filter(yourlistname,Status="In progress"))

CountRows(Filter(yourlistname,Status="Closed"))

CountRows(Filter(yourlistname,Status="On hold"))

4105.PNG

2)Button1_1's OnSelect:

If(CreatedBy.Text="" || Dropdown_Priority.SelectedText.Priority="Select a priority" ||Dropdown_Area.SelectedText.'Account Name'="Select an area" || Subject.Text="" || Description.Text="",
    UpdateContext({msg_visible:false});UpdateContext({msg_visible:true}),
    Collect(yourlistname,Status,{ID:Text(CountRows(TicketsCollect1)+1),Owner:CreatedBy.Text,AccountName:Dropdown_Area.SelectedText.'Account Name',Priority:Dropdown_Priority.SelectedText.Priority,Subject:Subject.Text,Description:Description.Text,Status:"New", DateCreated:Text(Today())});
    
Navigate(DashboardPage, ScreenTransition.None))

 //please replace with your list name

4106.PNG

 

What's more, since all the columns in the original collection are all text type, you'd better set all the columns to text type in your list too. Or else you will need to change your original formulas a lot.

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (74,852)