Using Power Query to Update Project Custom Fields
Is Power Query in Excel 2013 able to do Bi-directional updates for updating Enterprise Custom Project fields in PWA 2013?
So to update data you would need to either use one of the following APIs:
PSI
CSOM
JSOM
JSOM REST
Always try and use one of the client side API's if possible (PSI is a server side API). I'm not sure you will be able to do this via Excel though, I would look at a custom app , web part etc.
Paul
Paul Mather | Twitter |
http://pwmather.wordpress.com | CPS |
MVP | Downloads
Similar Messages
-
Creating an SQL Query for Project Custom Fields Values
Hello:
I'm currently trying to create an SQL Query to show all of the server's Project Custom Fields Values, along with the modification date.
So far, I've managed to display correctly all of the data for all of the Projects' text value Custom Fields (those not based on a LookUp Table) with this query:
SELECT
MSP_PROJECTS.PROJ_NAME,
MSP_CUSTOM_FIELDS.MD_PROP_NAME,
MSP_PROJ_CUSTOM_FIELD_VALUES.CODE_VALUE,
MSP_PROJ_CUSTOM_FIELD_VALUES.TEXT_VALUE,
MSP_PROJ_CUSTOM_FIELD_VALUES.MOD_DATE
FROM
MSP_PROJ_CUSTOM_FIELD_VALUES
INNER JOIN
MSP_CUSTOM_FIELDS
ON MSP_CUSTOM_FIELDS.MD_PROP_UID = MSP_PROJ_CUSTOM_FIELD_VALUES.MD_PROP_UID
INNER JOIN
MSP_PROJECTS
ON MSP_PROJECTS.PROJ_UID = MSP_PROJ_CUSTOM_FIELD_VALUES.PROJ_UID
WHERE
MSP_PROJ_CUSTOM_FIELD_VALUES.CODE_VALUE IS NULL
ORDER BY
MSP_PROJ_CUSTOM_FIELD_VALUES.PROJ_UID,
MSP_PROJ_CUSTOM_FIELD_VALUES.MD_PROP_UID
However, when I try a new Query to obtain the actual values for the Projects Custom Fields that do use a LookUp Table, I can't seem to find what table in the model I'm supposed to link to the MSP_PROJ_CUSTOM_FIELD_VALUES.CODE_VALUE field (the TEXT_VALUE
field has NULL value when CODE_VALUE field isn't NULL)
Any suggestions on how to obtain the actual Projects' custom fields values instead of the Code Value, for Metadata that do use a LookUp Table?
Also, I'm able to run this query only in the Published Database, since the MSP_CUSTOM_FIELDS table is empy in the Draft Database. Why is that?
Awaiting your kind reply,
Sebastián Armas PMO Project ManagerHi Sebastián, rather than directly accessing the database it would be better to use the PSI to get this data. Take a look at the ProjTool sample in the SDK whcih gets this data.
Best regards,
Brian.
Blog |
Facebook | Twitter | Posting is provided "AS IS" with no warranties, and confers no rights.
Project Server TechCenter |
Project Developer Center |
Project Server Help | Project Product Page -
How to update a custom field of MARC table using BAPI_MATERIAL_SAVEREPLICA
Hi,
I want to update a custom field (Appended field) of MARC table using BAPI_MATERIAL_SAVEREPLICA. Please help me in this issue. I cannot use BAPI_MATERIAL_SAVEDATA as this updated the MARC table record by record. I have to update bulk records at a time.
Thanks
Rahul.Hi,
Use the Documentation given for struture in BAPI docuemntation...
For loading data into custom fields of MARC use the structure - BAPI_TE_MARC.
First, structures BAPI_TE_<NAME> (<NAME> = MARA, MARC, MARD, MBEW, MLGN, MLGT, MVKE, MARM, MAKT) and the appropriate check structures BAPI_TE_<NAME> (<NAME> = MARAX, for example) have to be extended by the customer to include the required fields. The structures that are delivered as standard only contain the relevant key fields. When new fields are added to this structure, you should ensure that a field has the same name as the field in the database table. Furthermore, the fields in the structures BAPI_TE_<NAME> can only be CHARACTER fields. Data element BAPIUPDATE is to be used for the fields in the check structure (exception to this: key fields.)
Parameters EXTENSIONIN and EXTENSIONINX are used for transferring data to the method. Field STRUCTURE contains the name of the structure (for example, BAPI_TE_MARA or BAPI_TE_MARAX). This names is used to identify the work area (for example, WA_BAPI_TE_MARA or WA_BAPI_TE_MARAX) to which the data is transferred. The remaining fields in parameters EXTENSIONIN or EXTENSIONINX contain data for the key fields (for example, the material number) and the data for customer-specific fields. The number of characters reserved in both parameters for the contents of the customer-specific fields must match the number of characters for the relevant field in the work area. If the number of required characters is less, the remaining characters are left blank. Only when all characters have been filled can the contact for an additional field be transferred. Bear in mind that only data for which an appropriate indicator has been set in the work area can be updated to the database.
Regards,
Bhargava -
PSI Bulk Project update on Custom Field lookup tables.
Using PSI Is it possible to update project custom filed which has a lookup table. I tried but it throws the following exception
An unhandled exception of type 'System.Web.Services.Protocols.SoapException' occurred in System.Web.Services.dll
Additional information: ProjectServerError(s) LastError=CICOCheckedOutInOtherSession Instructions: Pass this into PSClientError constructor to access all error information
Any Idea on this.
VIKRAMHello,
If you are trying to update the lookup table values, see this PowerShell example:
https://gallery.technet.microsoft.com/Update-Server-Lookup-table-bb1ae14f
Paul
Paul Mather | Twitter |
http://pwmather.wordpress.com | CPS |
MVP | Downloads -
How to use power query with sitecatalyst
Hello,
I need to use power query to import a table from sitecatalyst. Doing some tests I found that If remove the session from the url that has the report parameters, the app will redirect me to the login page, after entering the company, username and password
it will load the report page with the data according to my filters.
When I add the report url on the From Web option, excel does not allow me to add credentials. If I add the login+redirect url it allows me to add user/password but does not load the tables that appear on a regular browser.
Is it possible to consume sitecatalyst without using Report Builder? If not, how you access the security info after you added the url.
Thanks.To the best of my ability to tell, the right way to use this product from within Power Query would be to use its API. Unfortunately, we don't currently support either of the methods needed to be able to authenticate with the service (OAuth 2.0 and a relatively-custom
digest-based method). Adding a mechanism to allow use of arbitrary OAuth-protected resources is a fairly high priority for us, and I hope we'll be able to deliver something before mid-2015.
Scraping the website is very hard to do well -- both from an authentication and from a data discovery perspective. -
How to update a custom field in declarative workflow with VS 2013
Hello,
How to update a custom field in declarative workflow with VS 2013
any help would be appreciated!!!!!
Thanks regards, Vignesh.Dear all,
I'm using 4.6C right now, i already implement BADI MEREQ001, but this only valid
for creating PR via ME51N.
I found an EXIT_SAPLEBND_001 and tried to implement it,
but i got another difficulties since how i transfer CEBAN structure to EBAN structure.
thanks very much.
Regards,
Billy -
How to update the Customer field value of PO Item under the Delivery Address Tab?
Hi Friends,
i tried to update the Customer field Using Bapi_PO_change.I passed the PO Order no,POADDRDELIVERY data with Item no,Adrees no,Customer no.But i am getting no data changed message from return table.I attached the screen shots.So please suggest me the helpful information for resoving this issue.
Thanks,
DineshThank you friends,
My Problem was resolved.In my case i have passed the customer value in BAPI_PO_CHANGE POITEM Table with updated customer value.
Thanks,
Dinesh -
Using Power Query to import image files for Power View
I am trying to use Power Query to import image data from a SQL Azure database for use in Power View. I've selected both the source image table and the ?images table in the workbook query. The files seem to load as binary data in the Power
Query editor but when loaded to the data model with Power Pivot, the field becomes "text" type rather than binary. Does anyone know the procedure to use PowerQuery to load image files into PowerPivot?Hi,
We currently do not support loading binary data from Power Query into the Power Pivot data model. This is something we'd like to address soon. For now, you will need to use the Power Pivot import capabilities if you want to achieve this.
Sorry about the inconvenience - we will try to enable this feature over the coming months.
Faisal Mohamood | Program Manager | Data Platform Group - Microsoft -
Update Equipment Custom fields
Hi Experts,
I have a custom fields ZZOUTDT(Start date) in table EQUI.
I want to update this custom field for Equipment.
Is there any Bapi where I can pass this field value to update in Equipment?
Please suggets.
Helpful answers will be rewarded.
Thanks
Anukoolhi,
generally any standard programa will not contain the custom fields.
did u create tht field in any transaction.
if not then u have to write a program to update tht table.
or u identify the exits which trigger for that table and try to populate that fields using that exit. -
Workspace Project Custom Field Web Part on different Site Collection?
Hello experts,
I'm working on a project site template in a SharePoint 2010 environment. My client wants project custom fields to be displayed on the Project Site homepage.
To accomplish this, I'm using the Solution Starter's Workspace Project Custom Field Web Part.
It works fine, as long as we create the project sites under the PWA site collection.
However, due to administrative reasons, we've decided to provision all project sites under a separate Site Collection, in a separate content database. In this case, we manage to add the webpart to the page, but as soon as we try to edit it, to configure
the visible Custom Fields, we get this error:
Server Error in '/' Application.
Unhandled Communication Fault occurred
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.Services.Protocols.SoapException: Unhandled Communication Fault occurred
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[SoapException: Unhandled Communication Fault occurred]
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) +413241
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +300
WorkspaceProjectCFWP.WebSvcCustomFields.CustomFields.ReadCustomFieldsByEntity2(Guid entityUid) +181
WorkspaceProjectCFWP.Services.<>c__DisplayClass12.<GetCustomFields>b__11() +158
Microsoft.SharePoint.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2() +729
Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode) +26839062
Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param) +27885657
Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode) +93
WorkspaceProjectCFWP.Services.CustomFieldsService.GetCustomFields() +208
WorkspaceProjectCFWP.Services.CustomFieldsService.GetAllProjectFields() +173
WorkspaceProjectCFWP.ProjectCFEditorPart.SyncChanges() +325
Microsoft.SharePoint.WebPartPages.ToolPane.OnSelectedWebPartChanged(Object sender, WebPartEventArgs e) +283
System.Web.UI.WebControls.WebParts.WebPartEventHandler.Invoke(Object sender, WebPartEventArgs e) +0
Microsoft.SharePoint.WebPartPages.SPWebPartManager.BeginWebPartEditing(WebPart webPart) +96
Microsoft.SharePoint.WebPartPages.SPWebPartManager.ShowToolPaneIfNecessary() +579
Microsoft.SharePoint.WebPartPages.SPWebPartManager.OnPageInitComplete(Object sender, EventArgs e) +296
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Page.OnInitComplete(EventArgs e) +11146206
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1674
Version Information: Microsoft .NET Framework Version:2.0.50727.5472; ASP.NET Version:2.0.50727.5474
Now, I've activated every possible feature, both on the Site Collection and Site level (or SPSite, SPWeb). Alas, no succes. Which brings me to these questions:
What might be causing this error? Can this be solved?
Are there any cases of working webparts of this kind in site collections other than PWA?
If this is a technical limitation, what are alternative options for me to display custom fields on a project site?
Link to the Solution Starters: http://archive.msdn.microsoft.com/P2010SolutionStarterHi
I did not use this solution starter, but it might be that the webpart just looks for a Project Server instance in the current site collection - and there is none.
You could use a SQL Reporting Services Report to show on the site to accomplish this. Either you would have to set the project as a parameter manually once for each site, or you could try to determine the project automatically using the URL.
Kind regards
Christoph
Christoph Muelder | Senior Consultant, MCTS, MCSE, MCT | SOLVIN information management GmbH, Germany -
Updating a custom field in ItemCheckingIn event of pages library of publishing portal.
I have Pages Library of publishing web. In this pages library I have a content type that has a few custom fields.
When ever a page is created and checked in in this library I want to send out an update email to users. The function that sends the email returns an Id to track the mails sent.
I want to store this id to the one of the custom fields of the content type attached to this pages library.
If I use item checkingIn event then list item is available but when i update it gives error probably due to the fact that in synchronous item the item is not yet created.
If i use CheckedIn event then it executes after the file is checked in , in that case it gives error asking me to check out the file first and the update the custom field.
Please suggest the best way to update a field in document library in synchronous event handlers or in asynchronous event handlers in the simplest of ways.
I do not want to check out the file in asynchronous event programatically for just one field and then re check it in.
Hi,
According to your post, my understanding is that you want to update list item in ItemCheckedIn method in Event Receiver.
The following code snippet for your reference:
/// <summary>
/// List Item Events
/// </summary>
public class EventReceiver1 : SPItemEventReceiver
/// <summary>
/// An item was checked in.
/// </summary>
public override void ItemCheckedIn(SPItemEventProperties properties)
SPListItem item = properties.ListItem;
item["Title"] = "Test1";
item.Update();
If the issue still exists, I suggest you debug your code or provide your code for further research.
http://sharepoint-kings.blogspot.com/2013/02/debugging-event-receivers-in-sharepoint.html
Thanks,
Dennis Guo
TechNet Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Dennis Guo
TechNet Community Support -
How to use Power Query to load data from a single source into multiple tables
Hi all,
I have a requirement to load my data into three different data models using Power Query. Is that possible?
My source is a SharePoint survey list, with similar questions like:
1) Course lecturer - John Doe
1a) The course was useful (rate 1 to 5)
1b) The lecturer displayed good knowledge of topic (rate 1 to 5)
2) Course Lecturer - Mary Brown
2a) The course was useful (rate 1 to 5)
2b) The lecturer displayed good knowledge of topic (rate 1 to 5)
I would like to split the data into separate data models (one for John Doe; another for Mary Brown), so that I can compare the different lecturers. Other than running separate surveys for each of them, I thought of using Power Query to transform the data.
Is it possible?
Thanks.
Regards
GMYes, this is possible.
Start with a single query that returns you the data for all lecturers.
Right-click on the "all lecturers" query in the queries pane, and choose Reference, once for each lecturer. This will create a query for each lecturer.
Open the query for each lecturer and filter the data so that only that lecturer's results are visible.
Click "Close & Load To..." for each lecturer's query to load the data into the data model. This will create a data model table for each lecturer.
If your question is more about how to transform such a survey list into a table that can be easily filtered, please provide an example of how the list shows up in Power Query.
Ehren -
How to load excel files from my SharePoint site to Excel client by using Power Query
Hello,
I am using Power Query to import some Excel files from shared documents on SharePoint site. After I type the URL of my SharePoint site into the filed, the expected Excel files do not appear in Power Query. Please provide the method as soon as possible.
Thanks!Could you check if
this post can help? -
Trouble connecting to SQL 2014 Database using Power Query
I am trying to connect to a SQL 2014 Database using Power Query. My connection string requires that I set the "Application Intent" setting to a value of "readonly", The connection parameter is required by SQL 2014 because of
the failover cluster configuration.
I have successfully been able to connect via PowerPivot with the following connection string:
Provider=SQLNCLI11;Data Source=<Server>;Persist Security Info=False;Integrated Security=SSPI;Initial Catalog=<DB>;Application Intent=readonly
I cannot seem to find the correct syntax to connect via SQL 2014. This is the syntax that I have been attempting:
Sql.Database("<Server>", "<DB>",[Application Intent=readonly])
Is this currently supported?
Thanks, BarbaraIt's not yet, I'm afraid, but it's something we're aware of and have vague plans to address :/.
-
Updation of Custom Fields in AFRU table Using Customerexit
Hi all,
I added two fields in CO11n Tcode using SCREEN EXIT - CONFPP07 and iam trying to update these two fields in AFRU table
using CONFPP05. But iam unable to update these two field .
see this code in CONFPP05
LOOP AT afrud_tab.
afrud_tab-zzshift = wa_afrud-zzshift1 .
afrud_tab-zzoperator = wa_afrud-zzoperator1 .
MODIFY afrud_tab.
ENDLOOP.
Plz help me regarding this..Thanks for reply
Ya i added two fields in confpp07 .
see the code :
*& Include ZXCOFTOP
tables : afrud.
DATA : WA_AFRUD TYPE AFRUD,
IT_AFRUD TYPE TABLE OF AFRUD.
Include ZXCOFU24
MOVE afrud-zzshift1 TO wa_afrud-zzshift1.
MOVE afrud-zzoperator1 TO wa_afrud-zzoperator1.
Even though it is not updating . except these two fields.
Regards,
Srinivas
Maybe you are looking for
-
Data usage analysis page. Doesn't match current usage page?
O.K. Here's what I'm going through. Verizon tells me I'm way over my 5.0 limit. Right now I am close to 9GB. So to check I click on usage, This is what I get. Data Allowance Exceeded. Additional data usage will be billed at $10 per 1.000 GB. Current
-
My husband has bought me an iMac which has no disc drive, how do I install my copy of Elements 12, thanks
-
I'm trying to distribute a DB Application using the Instant Client provided
Hi!! I'm trying to distribute a DB Application using the Instant Client provided by Oracle. I've checked the FAQ of Oracle and says the Instant Client supports all existant versions of Oracle. But I've also seen in another posting that the oci.dll ne
-
IPhoto not showing videos in Photo Stream
Does anyone know why I can't see my videos which have transferred from my iPhone to my computer via Photo Stream?
-
Trouble with flv insertion into DW CS4
I am having a problem when I want to insert an flv file into a web page using Dreamweaver CS4. I use the menu selection INSERT/MEDIA/FLV and fill in the proper boxes in the popup window including the file name, the type of skin, detect dimensions, e