WorkflowHistory List ID and Primary Item ID is null - VS /SharePoint App Workflow
This is very puzzling. I have WriteToHistory activity (OOTB) in my SharePoint State Workflow. When source list gets updated, workflow fires and first activity is called is WriteToHistory
activity.
In the workflowhistorylist list , I don't see List ID, Primary Item ID populated (I do see workflow history parent instance, association ID, user id,
date occurred,Description are populated). BTW, workflow template ID, event type, group type, outcome , duration and data are also empty - I don't want it for my solution so I don't care for now).
Has anyone seen this ? Any help or pointers?
Thank you so much.
DT
Hi,
If you use SharePoint designer workflow create a SharePoint 2013 workflow, the List ID and Primay Item ID in workflow history list also is null. I'm not find a official document to explain this things.
If you want to dubug in visual studio workflow, we can use the following debugging techniques:
1. Setting breakpoints
2. Sending debug messages to the console
3. Monitoring traffic between SharePoint and Workflow Manager with Fiddler
We can customize a workflow action to achieve your requirement.
How to: Build and deploy workflow custom actions
http://msdn.microsoft.com/en-us/library/office/jj163911(v=office.15).aspx
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
Similar Messages
-
Tool to list blocks and block items
i'm wondering if there is a tool that can exhaustively list block and block item names for auditing purposes?
thanks again.Hai,
Try this Code
Str_First_Block VARCHAR2(100);
Str_Current_Block VARCHAR2(100);
Str_First_Item VARCHAR2(100);
Str_Current_Item VARCHAR2(100);
Str_List VARCHAR2(32767); -- *the max of varchar is 32767*
BEGIN
Str_List := NULL;
Str_First_Block := NAME_IN('SYSTEM.CURRENT_BLOCK');
Str_Current_Block := Str_First_Block;
LOOP
Str_First_Item := GET_BLOCK_PROPERTY(Str_Current_Block, FIRST_ITEM);
Str_List := Str_List || CHR(10) || Str_Current_Block || '.' || Str_First_Item;
Str_Current_Item := Str_First_Item;
LOOP
Str_Current_Item := GET_ITEM_PROPERTY(Str_Current_Item, NEXTITEM);
EXIT WHEN Str_Current_Item IS NULL;
Str_List := Str_List || CHR(10) || Str_Current_Block || '.' || Str_Current_Item;
END LOOP;
Str_Current_Block := GET_BLOCK_PROPERTY(Str_Current_Block,NEXTBLOCK);
EXIT WHEN Str_Current_Block IS NULL;
END LOOP;
END;this will give you the full items list of the current form. keep and eye on that Str_List variable, as the size of that variable is too small.
Regards,
Manu.
If this answer is helpful or correct, please mark it. Thanks. -
I just bought a new IPAD. There are no "list", "date," and "add a reminder" buttons on the Reminder App. There are also no "calendar" and "add an event" buttons on the Calendar App. Why? Is there a way to add either a reminder or an event?
For the reminders app - just tap on an open space on the ruled paper window under the heading in order to create a new reminder. Or tap on the + sign in the upper right corner of the app. You do not have the + sign on the app?
For the calendars app to go Settings>iCloud>Calendars>On. Toggle the setting on and off and the + sign should appear in the lower right corner of the calendars app. Tap the + sign to create a new event. -
Lists, groups and selected item
I'm trying to learn how to work with lists and I'm just not getting it. I've been working on this for days now to no avail.
My first problem is eachItem is returning only last entry of groupsList instead of the selected specifiedGroup. Then what I would like to do which I'm not too keen on either is, take that selection and match it to one of the choice groups which would contain files or something that the user has preselected previously. Thanks so much! I'm learning a lot of Applescript lately but these lists get the best of me still as I don't fully understand how they work yet. Hoping this will clear my head on things.
property groupsList : {"List1", "List2", "List3", "List4", "List5"}
property specifiedGroup : {}
property choiceOne : {}
property choiceTwo : {}
property choiceThree : {}
property choiceFour : {}
property choiceFive : {}
choose from list groupsList
copy result to specifiedGroup
log specifiedGroup
set results to (every item of groupsList)
repeat with eachItem in results
if eachItem = specifiedGroup then
exit repeat
end if
end repeat
log eachItemAppleScript doesn't support variable variables, so you can't refer to variable names like that (at least not in regular AppleScript). Using a record isn't that much better, because you can't use variables to refer to property keys, either. There are a couple of cheats that use run script, but usually those are more of a pain that they are worth.
One way that is similar to what you are thinking about would be to create a list of lists, then use your choice to index into that list, for example:
property groupsList : {"List1", "List2", "List3", "List4", "List5"}
property choiceOne : {"choiceOne", "this is list 1"}
property choiceTwo : {"choiceTwo", "this is list 2"}
property choiceThree : {"choiceThree", "this is list 3"}
property choiceFour : {"choiceFour", "this is list 4"}
property choiceFive : {"choiceFive", "this is list 5"}
set listOfLists to {choiceOne, choiceTwo, choiceThree, choiceFour, choiceFive}
set theChoice to (choose from list groupsList) as text
if theChoice is "false" then error number -128 -- cancel
set specifiedGroup to missing value
repeat with i from 1 to (count groupsList)
if item i of groupsList = theChoice then
set specifiedGroup to item i of listOfLists
exit repeat
end if
end repeat
log specifiedGroup -
Hi,
I'm new to SharePoint 2013 I want to be able to query a MSSQL database from a SharePoint App I have tried to create an External Content Type (ECT) which is produced from a MSSQL stored Procedure, this procedure has several parameters which are needed to
filter the data correctly. From here I want to produce an external list which I can then query from a c# SharePoint app. If I leave the filters in the ECT null then the list is of course empty or if enter a default values the results are limited
for the app to query so are no good.
I want to dynamically pass values to the ECT when querying from the app, is this not possible. Should I just be returning everything in an external list and then letting the query in the app filter the data, this seems inefficient?
Is this the best way to do this or should I be doing this differently?
Please can someone point me in the right direction.
ThanksHi Pandra801,
When you create a the external content type, please try to add a filter based on your select statement.
http://arsalkhatri.wordpress.com/2012/01/07/external-list-with-bcs-search-filters-finders/
Or, try to create a stored procedure based on your select statement, then create ECT using the SQL stored procedure.
A step by step guide in designing BCS entities by using a SQL stored procedure
http://blogs.msdn.com/b/sharepointdev/archive/2011/02/10/173-a-step-by-step-guide-in-designing-bcs-entities-by-using-a-sql-stored-procedure.aspx
I hope this helps.
Thanks,
Wendy
Wendy Li
TechNet Community Support -
How to customize Category and Category items list while creating New Model
Hi,
what the most convenient way to customize the Category and Category items list while creating New Model?
This is standard:
Now, what we want to achieve, is to customize this menu, to:
1. Display in the Category window only f.e. two categories:
- EA Diagrams
- BPM Diagrams
2. In the EA Diagrams, we want to have f.e. four copies of City Planning diagram, each of them should have different elements available, f.e. in the first copy, only Architecture Areas shall be made available, in the second one Architecture Areas and Business Functions, in the third on f.e. only Business Functions shall be made available. Additionally, it should behave like a hierarchy ... meaning you can create the second diagram, only as child (related diagram) of the first diagram etc.
I know, excluding the particular diagrams/diagram elements can be configured using the right/profile settings, but how to:
1. Customize the standard New Model menu window
2. Create copies of City Planning Diagrams with different set-ups
3. Set the relationship between diagrams
Is such a configuration change possible?
Thanks a lot for your help!
Regards,
RafalNow, what we want to achieve, is to customize this menu, to:
Question #1. Display in the Category window only f.e. two categories:
- EA Diagrams
- BPM Diagrams
Click on Tools => General Options=> Model Creation
Click on Properties => at right of Default category set
Note : Model template does not work as Category. We can't set. An enchancement request has been open to SAP
In the following example I defined a new default (MyNewDefault.mcc). As you can see only BPMN models are available.
To create a new category set with BPMN choice
a) Copy default.mcc in MyNewDefault.mcc file.
Go to Tools=>General Options=>Model Creation : Select your new category
Go to Tools=>General Options=>Model Creation : Edit properties and remove all things you does not want keep
or
b) Go to Tools=>General options=>Model Creation : Edit properties and click on Save as button and specify the file name "MyNewDefault".
Quit the window.
Select you new category : Go to Tools=>General Options=>Model Creation : "MyNewDefault"
Edit properties and remove all things you does not want keep.
Save you new category
Question #2. How to define copies/replicas of existing diagrams
Wrote an extension
Question #3. How to make sure, particular diagrams can be used (created) only on predefined "levels" and how to set the parent-child relationship, so that PD enforced it directly when creating a new diagram.
Specify yours conditons in your extension attached to your model
Example : When the user want create a child diagram : You can display a list of Parent Diagrams to select from.
You can set in your extension by VBScript parent-child relationship
Question #4 In the EA Diagrams, we want to have f.e. four copies of City Planning diagram, each of them should have different elements available, f.e. in the first copy, only Architecture Areas shall be made available, in the second one Architecture Areas and Business Functions, in the third on f.e. only Business Functions shall be made available.
If I understand well your question. I suggest to take a look in
Repository=>Administration=>Objects Permission Profile
You can specify objects to show, mask, deactivate at model level.
You can specifiy your own metadata.
But I'm not sure you can mask, deactivate functions following diagram selection. It seem to specific.
Message was edited by: Benoit Le Nabec -
Image instead of List Name, and hyperlink the image to view 'All Items.aspx' page
Hi,
I would like remove the Page title for list (i.e., name of the list in view all items.aspx page) , and instead use image and hyperlink the image
to 'All items.aspx" page.
Using developer tool found the element (#PageTitle) and added 'Script Editor' webpart and below css script to it. I am successful in replace the
title to image, however, I am unable to add the HTML tag for hyperlink. Where do I need to add or how do I add? Could anyone help me please??
<style type="text/css">
#pageTitle
background-image: url('http://w2k81368:2116/SiteAssets/Test.jpg');
background-repeat:no-repeat;
text-indent: 100%;
white-space: nowrap;
</style>
Regards,
SunithaHi Sunitha,
According to your description, my understanding is that you want to change the list title to an image.
I recommend to add the code below to the list page:
<script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script><script type="text/javascript">
$(document).ready(function (){
var s = "<img alt='SP' src='http://w2k81368:2116/SiteAssets/Test.jpg'>";
var $t = $("#DeltaPlaceHolderPageTitleInTitleArea span span a");
$t.html(s);
</script>
After that, the list title will change to the image and it will show allitems.aspx page when clicking the image.
Thanks,
Victoria
Forum 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]
Victoria Xia
TechNet Community Support -
Powershell script to count number of list and library items in site collection
We are identifying large lists in our 2010 SP environment and I'm attempting to write code to output the total number of list items in a site collection. I'm using the code below but it only displays column data for title and url.
What do I need to add so it can count the number of items in each sharepoint list and library?
Get-SPSite -WebApplication http://sharepoint -Limit All |
Select -ExpandProperty AllWebs |
Select -ExpandProperty Lists |
Select ParentWebUrl, Title
I'm referencing
http://sharepointpromag.com/sharepoint/windows-powershell-scripts-sharepoint-info-files-pagesweb-partsPlease find belwo script, it will iterarte through all the folder/Subfoder to get the item counts from all list and library, you can modify this script to run this at site collection scope:
Note: save the script in .ps1 file and execute the script as described below to get log file, it will save the log file out.txt in seleted directory:
e.g.PS D:\PowershellScripts> .\ListItemCount.ps1 > out.txt
$SPWebApp = Get-SPWebApplication "http://weburl.com/"
foreach ($SPSite in $SPWebApp.Sites)
if ($SPSite -ne $null)
foreach ($SPWeb in $SPSite.AllWebs)
foreach ($list in $SPWeb.Lists)
$ListURL = $SPWeb.url + "/" + $list.RootFolder.Url
Write-Output $ListURL
[Microsoft.SharePoint.SPQuery]$query = New-Object Microsoft.SharePoint.SPQuery
#$query.Folder = fldr;
#Recursive Scope....
$query.ViewAttributes = "Scope='Recursive'"
$allitems = $list.GetItems($query);
$filecount = $allitems.Count;
Write-Output " No of item: " $filecount
if ($SPWeb -ne $null)
$SPWeb.Dispose()
if ($SPSite -ne $null)
$SPSite.Dispose()
You can update the code to get any specific list type item count, using if($list.BaseType -eq "DocumentLibrary") condition:
if($list.BaseType -eq "DocumentLibrary")
$ListURL = $SPWeb.url + "/" + $list.RootFolder.Url
Write-Output $ListURL
[Microsoft.SharePoint.SPQuery]$query = New-Object Microsoft.SharePoint.SPQuery
#$query.Folder = fldr;
#Recursive Scope....
$query.ViewAttributes = "Scope='Recursive'"
$allitems = $list.GetItems($query);
$filecount = $allitems.Count;
Write-Output " No of item: " $filecount
if ($SPWeb -ne $null)
$SPWeb.Dispose()
If my contribution helps you, please click Mark As Answer on that post and Vote as Helpful
Thanks, ShankarSingh -
why is the "buy all" no longer visible on my wish list? and it is not letting me delete items.?
The 'buy all' has, for some reason, been removed from the current version of iTunes - you can try leaving feedback for Apple and maybe it'll be added back in a future update :http://www.apple.com/feedback/itunesapp.html . Until then you can only buy items individually.
In terms of the 'x' for deleting items from it, other people have posted about that and it's affecting me as well. I assume that there is a bug with the current version of iTunes and/or a problem at Apple's end which they need to fix. -
Split a text based on delimiter and add items to a sharepoint list using SPD workflow
Hi All
I have to store repeating table data into a sharepoint list. I have developed an approach to store data into a sharepoint list using web services as mentioned at
http://www.bizsupportonline.net/infopath2007/how-to-submit-items-rows-repeating-table-infopath-sharepoint-list.htm. However this approach is working when form opened client only but when I opened it in browser this approach is giving error. Now I'm looking
to promote repeating table data by combining items will a delimiter semi-colon (;). Please let me know how can I split the promoted field value using de-limiter and add it to a sharepoint list.
Note:
I'm working on SharePoint online 2010. (I don't have sharepoint on-premise, so I can't use SharePoint Object Model)
If anybody know how to deal with this, please let me know.
Thank you in advance.Hi Chuchendra,
According to your description, my understanding is that you want to split the promoted field value in InfoPath form which was combined using semi-colon and add it to a SharePoint list.
I recommend to submit the data to another SharePoint list first(use a column to store the value) and then create calculated columns to user formula to split the value, then use workflow to update the list where you want to add the value with the divided
values.
For example: the value is aa;bb;cc;dd.
Based on the number of the semi-colons, we need to create one column to store the original value(named test for example), four calculated columns(v1,v2,v3,v4) to store the divided values and two more calculated columns(flag1,flag2) for use in the formula.
v1: =LEFT([test],FIND(";",[test])-1)
flag1: =RIGHT([test],LEN([test])-FIND(";",[test]))
v2: =LEFT([flag1],FIND(";",[flag1])-1)
flag2: =RIGHT([flag1],LEN([flag1])-FIND(";",[flag1]))
v3: =LEFT([flag2],FIND(";",[flag2])-1)
v4: =RIGHT([flag2],LEN([flag2])-FIND(";",[flag2]))
We can also use Client Object Model to write code to split the value of the field.
You can download the dll files form the link below:
http://www.microsoft.com/en-in/download/details.aspx?id=21786
Best regards.
Thanks
Victoria Xia
TechNet Community Support -
How to drag and drop item from list to another item in list and change their positions
I have a list field with multiple items. I want to select one item from list and drag and drop to another item in the list
after drop item on another item the position of items should be change. (Example:- if I select 1st item from list and drag and drop this item to 4th item in list after drop that item position of both item should be changed 1st item on 4th position and 4th item on 1st position)
I don't know how to do this.Please help me to find the solution.Hello Zoltan,
I do not believe that kind of option is built into the listboxes, but I was able to have similiar functionalities using property nodes. I have included an example program that I put together.
The big difference is that instead of dragging, you double click on the item you want to transfer. To highlight items as you go down the list, all you need to do is set the value to that list number.
Hope this helps you out!
Attachments:
Temp.vi 33 KB -
List and selecting items in it ?
I use List (element in building GUI). In emulators it works nicely and I have possibility to select one item from the list (I didn't code anything about selecting it) it was automatically added to menu. This is great.
When running the same app in actual device (Nokia 7210), the "select" is not possible / provided by the phone...Theere is no such element at all. So I actually can't select an item out of list.
In nokia 7650 this doesn�t occur.
My mistake, need to program ? .. how to proceed ?
PFunny that mine doesn't work and I have the same firmware version...
My situation is that I have a List, with items that are ment to be selected.. I need to have commands generally concerning the whole application and commands that are available after user have selected one item from the list.
This is now done so that I have one List (holding those selectable items...), select button then leads to another list, where I have list of actions available to selected item.
The previous list also has Commands appended to it.
These commands are always available, but in phone the List Select button is gone, and accesing that other list (with detailed actions concerning only the selected item) is then impossible. -
Need Help; Must accept email and create item in custom list
Hello Forum,
We have a Sharepoint 2010 site that has been using Microsoft's ticketing system for years. What I need to confirm is if there is a way to email the sharepoint list and have it create a ticket (parsing the from address, subject and body then creating a ticket
from that and sending a confirmation email reply to the user).
I understand there may be some coding needed, but don't know where to start without having to start over and lose our years of lists / data. Can someone please help provide information or at the very least a starting point for me?
Thanks.I coded something similar very recently. This community project helped me a lot; http://www.codeproject.com/Articles/32899/Reading-an-Outlook-MSG-File-in-C
I called
out to this code from an ItemAdded Event Receiver on the library to parse the email metadata.
It's also possible to email enable Libraries and receive items emailed straight to the library. There's a special event receiver available for that which helps you parse email metadata. (But I couldn't receive email directly from my project so I didn't use
this approach though I daresay it's simpler); http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spemaileventreceiver.aspx
w: http://www.the-north.com/sharepoint | t: @JMcAllisterCH | YouTube: http://www.youtube.com/user/JamieMcAllisterMVP -
Hi All,
I want to implement three level Horizental navigation on the top navigation and menu items are created based on the data available in a SharePoint List.
Implement this requirement through customization, how can i start any help
ThanksHello,
You can follow these links to get the result that you want. You can get the desired result either using the custom list or a site map. Please make sure when you edit the master page, dont work on the original v4.master. Always make a a copy and then work
on it.
This link will show you how get that navigation using a list.
http://www.bitsofsharepoint.com/BlogPoint/Lists/Posts/Post.aspx?ID=60
This link will show you how get that navigation using a sitemap.
http://www.sharepointdiary.com/2012/01/custom-top-navigation-using-sitemap.html
Please mark as "Answered" if this helped you.
Thanks,
norasampang -
Hi everyone,
Recently ,I have one publishing site template that has a lot of sub sites which contain a large amount of content.
On root publishing site, I have created custom list including many custom fields
and saved it as template in order that
any sub sites will be able to reuse it later on . My scenario describe as follows.
I need to apply Site Content and Structure Tool to copy a lot of items
from one list to another. Both lists were created from same template
I use Site Content and Structure Tool to copy data from source list
to target list as figure below.
Once copied , all items are completed.
But many columns in target list have been duplicated from source list such as PublishDate ,NumOrder, Detail as
figure below .
What is the huge impact from this duplication?
User can input data into this list successfully
but several values of some columns like “Link column”
won't display on “AllItems.aspx” page
. despite that they show on edit item form page and view item form page.
In addition ,user can input data into this list as above but
any newly added item won't appear on
on “AllItems.aspx” page
at all despite that actually, these
item are existing on database(I try querying by power shell).
Please recommend how to resolve this column duplication problem.Hi,
According to your description, my understanding is that it displayed many repeated columns after you copy items from one list to another list in Site Content and Structure Tool.
I have tested in my environment and it worked fine. I created a listA and created several columns in it. Then I saved it as template and created a listB from this template. Then I copied items from listA to listB in Site Content and Structure Tool and it
worked fine.
Please create a new list and save it as template. Then create a list from this template and test whether this issue occurs.
Please operate in other site collections and test whether this issue occurs.
As a workaround, you could copy items from one list to another list by coding using SharePoint Object Model.
More information about SharePoint Object Model:
http://msdn.microsoft.com/en-us/library/ms473633.ASPX
A demo about copying list items using SharePoint Object Model:
http://www.c-sharpcorner.com/UploadFile/40e97e/sharepoint-copy-list-items-in-a-generic-way/
Best Regards,
Dean Wang
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected]
Maybe you are looking for
-
3.5mm jack Ear Phones not working with IPAD
I have tried few ear phone (3.5mm jack) all working with Deskptop, Netbook, Laptop but none working with IPAD, it seems, there is a manufacturing fault in IPAD, I going abroad in 5 days, when I contact apple support on the phone, they need at least 7
-
How to convert a string to an int?
Call me stupid but I can't find it in the documentation. The String in question will always contain a number between 1 and 100. Thanks in advance.
-
Hello! I was using Skype for a few months, but about a week ago, I noticed a problem. When my friend calles me, I the call message (the blue one at the top right corner) does not appear. When he writes to me, however, everything's fine, and the mess
-
Windows setup could not process the Catalog setting
Hi, I'm trying to deploy an image of Windows 8 Embedded using WDS (Windows Server 2012) and I find this message in client machine. It appears while boot image is loading... I'm using an *.xml file to make an unattended installation, that I select fro
-
Button in captivate to click wmv url to open in windows media player streaming windows xp
Hello, I'm trying to insert a link to a button in one of the slides in captivate 7 (www.blahblahblah.com/filename.wmv). When user clicks on the button, the video opens as streaming video in windows media player. This works in Windows 7 and IE 8 or 9.