PowerApps form doesn't save external data to SharePoint list - sharepoint

I've created custom form with PowerApps so when you click on New button in SharePoint you will see this:
This form is for SharePoint list Workflow but for column CostCenter I'm using external list Companies and Cost Centers where I'm filtering values based on selected Company (Cascading Dropdown).
I'm able to select data in those two fields correctly but when I hit the Save button in the form the value of CostCenter is not saved to Workflow list but everything else is.
So Title, Property Manager, Company, etc. except CostCenter is saved. I guess it's connected to that Data Source of each field but I don't know how to send those data from CostCenter to Workflow too.
Thank you for your help.

Related

Unable to save new record to the sharepoint list

I am creating a leave system for my company through Sharepoint. I tried customizing the edit form using powerapps. So when I fill all the records in edit form as shown in powerapp.png, and click on save button as in normal sharepoint form, my fields get reset to their defaults and i get 'entry required or invalid value'(see the attachment named 'powerapp.png') and the item isn't added to my sharepoint list.
However the record does get added to list if using normal sharepoint form as shown in normal_sharepoint.png.
Note: I have created a custom text field in powerapp.png which calculates me the leave days excluding weekdays and weekends. ( this is a major requirement)
Also I have enabled content-approval in my sharepoint list because the item is sent to manager for approval. Hence a content-type data field equal to 'Item' always shows up when I open the edit form in normal sharepoint and some unique id is autogenerated. However I enabled the content type field in powerapps too but still the same error.
powerapp.png
normal_sharepoint.png
You need to ensure you have filled out all the fields as those asterisked are Required fields.
Also on the datacard of each of the fields on powerapps, you can change the required property to false if any of the fields is not cumpolsory

Infopath Form to submit data to two sharepoint lists

Novice in Sharepoint and looking for some advise.
we are trying to setup a infopath form with the below fields.
ReqID (Autogenerated with a workflow based on ID like Req-1 etc.),
Description,
User,
Date,
Testing,
Tester,
Date
when the user submits the form, we would like to save the information to two separate lists on sharepoint like...
List A - ReqID, Description, User, Date
List B - ReqID, Description, Testing, Tester, Date
Can someone please advise if this is doable without using any coding.
Thank you so much for all the help.
Several possible solutions:
One list:
If it is a matter of hiding clutter from selected users then: create one list for all of the fields and then create two views, one with your first set of columns and the other with the second set of columns. This has the advantage of no duplication of data, and if you need to update the Description column, it only has to be done in one place.
Two lists:
From the InfoPath form, post all of the fields to the first list and create a View that only displays what's needed for the "A" users. Create a workflow that adds a new item to list "B" with only the data needed.
Three lists:
From the InfoPath form, post all of the fields to a master list. Create a workflow that copies selected fields to List A and to List B. This has the advantage of the master list being an unchanged source of the original data for audit or tracking purposes.
Using Web Services
I believe InfoPath can call web services. This will be more like "coding", but you can write data directly to SharePoint lists using SharePoint's REST API.

Microsoft Powerapps - How to connect to different datasource in one form

I'm building an app for TravelInfo. Here are the fields: From, To, City, Country.
I am using common data source entity. And for the country lookup, I want to use a sharepoint list, that has all the country names.
I'm stuck at this stage. As you see in the snap, I want to connect the country dropdown to a sharepoint list.
[I've tried to achieve the same with picklist. But Its not good to manually create the huge list of countries in picklist. Sharepoint list should be ideal.]
Here is the question: In one form, how can I use different datasource for different fields??? Please help.
A form will save the data card value defined in Update into the field defined by DataField. You are trying to change data displayed on the dropdown which is not set in the Fields list you have above. Try the following (the first few steps may already be completed based on picture):
Check Country to insert data card into form
Select data card and under Advanced properties click Unlock to change properties
Delete text box from data card that was added by default
Select data card and insert desired control (drop down box)
Select drop down box (not data card) and under Advanced properties define Items and Value to populate values from the sharepoint list
Select data card and change Update to desired dropdown value that should be saved e.g. dropDown1.Selected.country_id
The drop down box can display the Country text on the form, but then save an associated value such as the country id.

Infopath - Create a drop-down List from Active Directory "Department" field

Is it possible to create a Drop-down list in InfoPath which connects to Active Directory and fills the list with UNIQUE Department Values only (no repeating ones)
I need this for an InfoPath so when a user entering the data can pick one of the departments listed in the drop-down. Any help would be appreciated.
I've had a look at the people picker control, which works great for User names, but the department field is a separate field and has nothing to do with the user I pick, so I simply need a control which is populated by the unique Department codes in AD.
Any help would be appreciated.
You should really contact your administrator for this sort of information. You do not want a form to query every AD user to pull their department and get the unique values just to populate a drop down list. It is very possible to obtain the list of unique directories, however you should work with your administrator to populate this data to an XML web page or other similar solution and then connect your form to THAT data source through the form. The point is you are missing a step of obtaining the queried data.
With that said you can obtain the department of the user by querying the get user profile service to obtain the department name, elinating the need to even create a populated drop down list. See this article.

How to set workflow on survey creation in SharePoint

I want to set workflow on survey creation to create list item, like, when I create survey, I want item of list to be created automatically.
My list contains title, creation Date, Created By, Survey Link. On survey creation I want to create list item with filled title and Survey link column automatically. Is it possible?
In SharePoint 2007, a workflow is tied to a library or a list. You can't tied a workflow to a survey creation statement.
A survey is a list with a diferent content type. Did you consider to build webpart with fields like title, date,... and an action button. Click on the button will create both the entry in the list and the frame survey.

Resources