Designer workflow - index of operation on string.
Hello All,
Can anybody tell me how to get index of a character in string in SharePoint Designer 2010 workflow??
There are actions like extract substring from index of string. Now question is how can i get the index of say '/' character and pass it to that action.
Open to all thoughts.
Thannks ion advance,
$Dolllar.
SHPT Formula Primer:
http://msdn.microsoft.com/en-us/library/bb862071.aspx
http://office.microsoft.com/en-us/sharepointtechnology/CH100650061033.aspx
http://office.microsoft.com/en-us/sharepointtechnology/HA101215881033.aspx
I think you'd want to use FIND().
Steve Clark, MCTS | Twin-Soft.com
Easy Bins Dumpster Rentals of Northern VA. (Specializing in driveway-sized roll-off dumpsters.)
Be sure to click one of them there forum buttons that artificially inflates my narcissitic ego... I mean gives me points.
Similar Messages
-
Hello All,
I am facing Problem in SharePoint Designer Workflow. The Problem is that while replacing some subtstring with Space from a string which contains item like {Test, Test, Test, Test}, It replaces all items.
Below two line we are using in Workflow.
Can any body suggest some soultion for Finding first ouucrence of ", " so that we can replace only first value from string not all. When String values are different then getting proper values but if String values are same with comma
seperated then it replace all values.
Please some body help and your help will be heighly appriciable.
Thanks in Advance.
Thanks,
Vivek Kumar PandeyHave you tried to use Regular Expressions instead of Replace?
This post is my own opinion and does not necessarily reflect the opinion or view of Slalom. -
Hello,
I'm attempting to use use the Target Audiences field in a SPD 2013 workflow, in this case just attempting to log the value to history for testing purposes. This is failing saying the column does not exist.
I enabled Audience Targeting on the list then create a simple workflow to log the value to history when the item changes.
I change an item and the workflow starts, but when it gets to any action looking at "Current Item:Target Audiences" it stops and says:
HTTP BadRequest to <site url>/_api/web/lists(guid'XXXXXXXX')/Items(4)?%24select=ID%2CTarget_x0020_Audiences
The field or property 'Target_x0020_Audiences' does not exist.
But it does. It is listed in the list setting and enabled for the content type.
I ran the listed API through an API program and sure enough, Target Audience is not listed in the results object.
I'm 99% sure I've enabled this and that the field is present and the workflow is valid. I ran the same situation on two lists to ensure it wasn't a hiccup, same results.
Is this a know issue? I couldn't find anything obvious online saying you cannot see this field via workflow, most of what i found said this would work.
Thanks an advance for any input.Thanks so much Lisa, for the clarification.
I understand what you have explained, and have seen several similar explanations that have lead to my confusion. Can you elaborate a bit, maybe for the sake of future information seekers?
I understand that audiences can be defined using the rules operations in Central Admin, but it seems another standard function is to just directly assign existing SharePoint groups. I think this is what you mean above, but this is also the point of
my misunderstanding.
In this particular setup I have only used existing SharePoint groups with no audiences defined in Central Admin. List Item A has a target audience of SharePoint group X, just that simple of a setup.
Assuming the above is valid, I would then like to see or alter the groups via SPD workflow.
Based on the following posts, I was under the impression this may be possible (but obviously not fully clear and thus I posted this):
https://social.msdn.microsoft.com/Forums/sharepoint/en-US/5eb984ba-55a3-4da7-a904-c34b2fece84c/how-do-i-set-the-target-audience-using-sharepoint-designer-workflow
http://www.sharepoint-tips.com/2011/01/setting-target-audiences-with-code.html
(sorry about lack of links, my account must still require verification)
So in SPD, I set a simple action such as "Log Current Item:Target Audience to history" (note the I am able to select target audience in SPD like any other field with no errors). At this point I am assuming everything is valid as SPD is treating
the field like any other string field. When executed the error in the above post comes up.
So to confirm your explanation, this is not supported? Even though the field is available for selection by design, it is not capable of use and known to produce errors in all cases of its use? The first post above is 100% wrong and you cannot
use SPD to set/view the target audience field? The second post is also wrong as it seems to present the fields as available for alteration using string concatenation?
If in fact the field is present by design, but also impossible to use by design, is this potentially a bug as the field is not supposed to be available if it will always produce the error when used with no error in SPD during compile?
Thank you again for the reply and I hope we might be able to provide a rock solid answer to this for future seekers. -
Can we have a loop in SharePoint designer workflows?
I am using Infopath2013 form along SharePoint Designer workflows. The approvers are dynamically selected based on the multiple drop down selection. In certain scenarios, there may be 10 approvers and workflow should flow everyone in sequence with approve/reject
option. If anyone rejects, the workflow stops, else workflow should reach till 10<sup>th</sup> approver.
I am using Repeating table and I am able to capture all the 10 approvers and put them in a SharePoint list as column value. But in SharePoint Designer, I am not finding way to loop the task for the number of approvers.
Is there way create a loop in SharePoint workflows?
Thanks!
Ravi
RaviHi Ravi,
Do you use SharePoint Designer 2007?
Have you tried to use sequence approval workflow with participants in serial order?
http://office.microsoft.com/en-001/sharepoint-designer-help/understand-approval-workflows-in-sharepoint-2010-HA101857172.aspx
If you use SharePoint Designer 2013, there is an "loop" operation available you can take a look.
http://prasadtechtactics.blogspot.in/2012/07/sharepoint-designer-2013-workflows-part_24.html
Thanks
Daniel Yang
TechNet Community Support -
Sharepoint Designer Workflow - Send an Email that displays Item Changes
Hi,
I have set up a Sharepoint Designer Workflow that sends an email to the Owner of an item (designated by a column in my list) whenver that item is changed by another user. The workflow looks like this:
If Current Item:Modified by not equals Current Item:Primary Owner
Email Primary Owner
This is set to occur whenever an item is modified.
I would like the email to show what changes were made to the item, similar to how Sharepoint's notifications work. It should show what the field that was changed to trigger the notification contains currently and what it contained previous to the change.
Any help is much appreciated.hi,
out of box there is no option available. But you can implement a solution.
Create a hidden field as multiple line of text. Make it a hidden field so that user cannot enter into this field.
When ever a workflow start check if this field is empty that means item is create now using string manipulation in workflow concatenate the meta data in one workflow variable and save it in this hidden field.
whenevre a workflow is start if hidden field is not empty it means this is an update item scenerio and than you
can have read old values from this field and you have new values in item metadat. format email to get diff.
send email upadte the hidden field again with new meta data.
Whenever you see a reply and if you think is helpful,Vote As Helpful! And whenever you see a reply being an answer to the question of the thread, click Mark As Answer -
How to wait for a date field to be not empty in Designer workflow
I am working on a workflow and need to pause the workflow to wait until a date field has been completed. I am aware of setting dates to a workflow variable of type string to check for null, but there is no way in the Designer workflow to wait until a workflow variable is not empty.
Does anyone know of a workaround to this?Hi,
I agree with Andrej about using a Textfield as a alternative.
But, I think you can try to add a new task (set the date value) into your workflow before other tasks.
Let me know if you have further questions!
Hope it is helpful! -
Office 365 : SharePoint designer workflow platform not available
Hi,
We have Office 365 E3 subscription and I am facing issue creating any SP2013 designer workflow for the sites created via Custom Web Templates ?
The option to create designer workflow with "SharePoint 2013 Workflow platform" is unavailable with message..
"The option for SharePoint 2013 Workflow platform is not available because the workflow service is not configured on the server, please contact your server administrator"
To add to the issue even if we create 2010 designer workflow, the workflow does not get associated with the list/library. I can see the workflow in SharePoint designer but not with library settings from the browser and of course the workflow is not executed.
Can anyone please suggest any solution ?
Thanks in advance.
RajeshHi,
If you are a tenant administrator please log into your admin account
navigate to this "https://youraccount-admin.sharepoint.com/_layouts/15/online/TenantSettings.aspx"
In this page,under connected services, deselect the "Block
SharePoint 2013 workflows".
Murugesa Pandian.,SharePoint 2010, MCPD | MCTS - Configure -
Hi,
I have built a vacation leave holiday system for SharePoint Foundation 2010 using SharePoint Designer workflows and Javascript. Everything works perfectly but I'm struggling to design a solution for users to specify half day requests that span over dates
greater than 1 day, i.e. my half day solution works but only when the start and end date are the same. How would I change the user interface to allow users to choose which day they want the half day to be requested when the vacation leave holiday request is
from, say, 6th - 10th Jan 2014?
Thanks.Hi ,
I have a test on my machine with a custom approval workflow and it can work normally .Here are the detailed steps :
1.
Open the site in SharePoint Designer .Create a workflow to associate with the document library .Set the workflow to start when an item is created and when an item is changed
.Also allow the workflow to start manually .
2.
Choose ‘Collect Data from a user’ .
3.
Click on the data and give a name to the Task created .
4.
Define the custom form field name as ‘Approve ?’ .Set the information type as Choice .
5.
Set the choices as ‘Approve’ and ’Reject’ .Display as Checkboxes .Uncheck the ‘Allow fill-in values’ and ‘Allow blank values’
.Click finish to save .
6.
Click on users and add the users who will approve the documents .
7.
Keep the output to variable as collect .
8.
Add a new step .Choose ‘If any value equals value ’ .Set the any value ‘Data source’ as workflow variables and parameters .Set the ‘Field
from source’ as Variable: collect .
9.
Set the value behind ‘equals ’ as ‘Approve’ .
10.
Add a new action ‘Update list item ’ .Set the item as current item .Add the field Approval status as Approved .
11.
Add an Else-if branch to update the Approval status as Rejected .
12.
Publish the workflow and test in your site .
Thanks,
Entan Ming -
Hi I have a requirement to create a list item in Contracts List when a document is uploaded in Contracts Vendor library.
Contracts List will
have columns - Contract Name ( title column), Contract Number, Contract Start date and end date.
Contracts Vendor library will have Contract
Name,Contract NUmber.
User will select the Contract Name from drop down ( this is look up column linked to Contract Name in Contract
List).When user uploads document in Contract Vendor library then item should be created in Contract List with selected Contract Name and
Contract number .
Contracts and Contracts Vendor are related by look up Contract Name. Contract Name is internally a title column in
Contracts List.
Issue1 :
Since Contract number is look up column, while I am creating item the Contract name is not getting updated in
Contracts List. I have to use sharepoint designer workflow to achieve this task. Title colum or Contract Name shows no title.
Issue 2:
One
more issue I am facing is that Contracts List has Section and Division cascaded drop downs when i select values from section and division
dropdowns and save item in Contracts list the values are getting saved in Contract List.
Could anyone suggest me how to handle this ? I am
attaching the screenshots of the list and library structure. TRuly appreciate your help.
Below are screenshots of the list structureHi,
According to your post, my understanding is that you wanted to update a title column in list that is a lookup column to document library in sharepoint designer workflow 2010.
I try to reproduce the issues as follows:
Create a custom list named Contracts List, add columns: Contract Name ( title column), Contract Number(Number), Contract Start date(Data and Time) and Contract End date (Data and Time).
Create a document library named Contracts Vendor library, add columns: Contract Name(Lookup), Contract NUmber(Lookup).
Create a workflow associated to the Contracts Vendor library.
Add action: Create List Item.
5. Start the workflow automatically when an item is created.
6. Upload a document, select the Contract Name and Contract NUmber, the workflow will be started automatically.
7. Open the Contracts List, an item will be added with the Contract Name and Contract Number in the Contracts Vendor library.
Thank you for your understanding.
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
SharePoint Designer Workflow - Unable to use ProjectUID in Emails
Hello Everyone,
I have a SharePoint Designer workflow running smoothly. The client now has a requirement where every email should link to the project's PDP page.
I can do this by stitching a URL together like this:
But when my workflow gets to this email, it fails with a status of Suspended (and the error below).
RequestorId: 8df1cbcb-fc04-dc9f-0000-000000000000. Details: RequestorId: 8df1cbcb-fc04-dc9f-0000-000000000000. Details: An unhandled exception occurred during the execution of the workflow instance. Exception details: System.ApplicationException: HTTP 403
{"error":{"code":"35120, Microsoft.ProjectServer.PJClientCallableException","message":{"lang":"en-US","value":"WorkflowActivityInvalidArgument"}}} {"Transfer-Encoding":["chunked"],"X-SharePointHealthScore":["0"],"SPClientServiceRequestDuration":["276"],"SPRequestGuid":["8df1cbcb-fc04-dc9f-b9ff-b373c077c4f0"],"request-id":["8df1cbcb-fc04-dc9f-b9ff-b373c077c4f0"],"X-FRAME-OPTIONS":["SAMEORIGIN"],"MicrosoftSharePointTeamServices":["15.0.0.4517"],"X-Content-Type-Options":["nosniff"],"X-MS-InvokeApp":["1;
RequireReadOnly"],"Cache-Control":["max-age=0, private"],"Date":["Tue, 11 Feb 2014 20:48:48 GMT"],"Server":["Microsoft-IIS\/7.5"],"X-AspNet-Version":["4.0.30319"],"X-Powered-By":["ASP.NET"]}
at Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
I have even tried sending an email with nothing but the ProjectUID and it still fails with this message, so I know that this variable is the issue.
I have this issue on multiple environments and multiple servers, I cannot believe I couldn't find anyone else having this issue while researching.
Does anyone have any clue as to what is happening? Isn't this happening for you as well?
120811049008Hello Paul,
This seems to be a bug and supposed to be fix in December 2013 CU. Please review the below thread
http://social.technet.microsoft.com/Forums/ie/en-US/71829125-09de-4094-9a0d-d9740aa73348/error-workflow-project-server-2013
Hope this helps.
Thank you,
Kiran K. -
Issue with Calling Rest Web Service using Designer workflow
Hello all
I am calling a Rest web service- HTTP Post (yammer API)-
http://www.yammer.com/api/v1/messages.json?data-app-id=myappid&group_id=groupid&body=MyPost in yammer using sharepoint 2013 designer workflow.(My Requirement is to create a yammer post when I approve an item in sharepoint).
but my header parameters are creating issue while executing workflow.
Currently I have these many parameters configured in request header
Accept -application/json; odata=verbose
Content Type -application/json; odata=verbose
content length header -255
Is there anything wrong or I need to additionally pass some values in call web service action?
Any help would be highly appreciatedHi Mahesh,
One you are missing is authentication token or credentials.
Please refer to the following articles.
http://www.cleverworkarounds.com/2014/02/05/tips-for-using-spd-workflows-to-talk-to-3rd-party-web-services/
A Series of articles related to Web Service in SPD Workflow
Trials or tribulation?
Inside SharePoint 2013 workflows–Part 1
Trials or tribulation?
Inside SharePoint 2013 workflows–Part 2
Trials or tribulation?
Inside SharePoint 2013 workflows–Part 3
Trials or tribulation?
Inside SharePoint 2013 workflows–Part 4
Trials or tribulation?
Inside SharePoint 2013 workflows–Part 5
Trials or tribulation?
Inside SharePoint 2013 workflows–Part 6
Trials or tribulation?
Inside SharePoint 2013 workflows–Part 7
Trials or tribulation?
Inside SharePoint 2013 workflows–Part 8
Trials or tribulation?
Inside SharePoint 2013 workflows–Part 9
Trials or tribulation?
Inside SharePoint 2013 workflows–Part 10
Trials or tribulation?
Inside SharePoint 2013 workflows–Part 11
Trials or tribulation?
Inside SharePoint 2013 workflows–Part 12
Please don't forget to mark it answered, if your problem resolved or helpful -
Issue in sharepoint 2013 designer workflow kickoff
We are facing issues in sharepoint 2013 designer workflow kickoff. When we kick off custom designer workflow using AD user with contribute/approve access, sendemail from task does not send an email. When we kickoff using administrator account task in
the designer workflow sends an email. There seems to be multiple issues with kickoff. and it even does not give any error task gets created but send email does not work.
Another issue in another approach-
We are also not able to kickoff using one AD account which we are not login in everyday. If we kickoff using this account after 2/3 days kickoff says invalid state of object for that user. Once we login manually with that admin workflow kick off account
again kick off starts. We do not want to let current user kickoff the workflow.
In both cases we are using new AD import in sp2013 and sync is done every 5 minutes.
MCTS Sharepoint 2010, MCAD dotnet, MCPDEA, SharePoint LeadMay be a permission issue, see whether the contributor has enough permission to participate in the workflow.
Also try to set Design permission to test and see whether that works.
Hope this helps!
Ram - SharePoint Architect
Blog - SharePointDeveloper.in
Please vote or mark your question answered, if the reply helps you -
Some fields are missing in Current Task - Designer Workflow Approval Task Process
Hi All,
I am using approval task process activity in designer workflow. When i go to the single task behaviour page, some fields are missing under Current Task Source.
Some missing fields are :
1. Assigned To
2.External participants
3. Form Urn
I am trying to get the above fields but not available. What could be the issue?
Puli BalaHi Puli,
I think your task list is corrupted, could you please try to associate your workflow to another task list in SharePoint Designer > Click Workflows on left navigation > Click to open your workflow > Under Settings section, select another task
list and test.
Thanks & Regards,
Emir
Emir Liu
TechNet Community Support -
Hi,
I want to convert word document to PDF, EPub, by using third party (.dll).
In SharePoint designer workflow in 2013.
So that I have question, Can we Install third party (.dll) in SharePoint workflow Designer for conversion?
Means I have created one simple application conversion of word to e Pub, PDF, Image by using (Spire.doc dll) in Visual Studio.
So this same conversion I want to work in SharePoint designer workflows?
So anybody has any solution then please provide me.
Thanks,
Samadhanit might be worth looking at these CodePlex steps, that plug directly into the Word Automation Services.
http://sp2010wordautomation.codeplex.com/
It'll provide you with a configurable step like the below that should help you achieve your aims
Steven Andrews
SharePoint Business Analyst: LiveNation Entertainment
Blog: baron72.wordpress.com
Twitter: Follow @backpackerd00d
My Wiki Articles:
CodePlex Corner Series
Please remember to mark your question as "answered" if this solves (or helps) your problem. -
How to use an infopath form field in the designer workflow
Hi,
I need to send an email to a person field from Infopath form. Can i access it in the workflow. If not, is there a way i can send an email on form submission from within the infopath form.
Please help. Thank you.Hi Prajk,
There are three ways of achieving it, one i will say its pretty straightforward and covers the basic of Infopath Forms Development
1)Populate Fields From Infopath Form at the time of Publishing.
The moment you done with your form and to publish you click FIle>Publish>SharePoint Server >Enter the Url of Site> Then Click Next twice upto a point where wizard asks "The fields listed below will be available as SharePoint Columns" ,
Click Add, select the placeholder in myfields for Person Field , expand the "person" group field and choose "AccountId", give the name to column(this will be SharePoint List Column Name) and for function select "first" and then
click next and Finish.
And use this field in Designer Workflow to send email.
2)Second way is to write VSTA based C# code on click of your Submit action on the form and upload and activate this form on form library via Central Admin.
3)Now other way of doing this is via Event Recievers.
Every infopath Form is an XmL File so on ItemAdded event you can extract its content and implement email sending c# code there:-
http://www.bizsupportonline.net/infopath2007/how-to-use-sharepoint-event-handler-object-model-submit-data-infopath-form-sharepoint-list.htm
Mark as Answer if helped!! To be or Not to Be..The question is this only......
Maybe you are looking for
-
How do you save videos from iPhoto to a USB flash drive?
Hello! Could someone please help me? I am trying to save vidoes from iPhoto to a USB flash drive. After I export them, I open my flash drive to play them back and they are all zero seconds long in Quick Time Player. What am I doing wrong?
-
Emac freeze outside repair serial #
My 2 year old emac is freezing constantly. I have run disk warrior, tech tool pro, and disk utilities via fire wire from a lap top and a G5. In addition to doing a total reinstall of the os. The emac will freeze if i try to run disk utilities from it
-
Hi all, I have enhanced standard IT 0584 through PM01. There is addition of 10 fields in that infotype through include structure CI_P0584.All these fields follow customer namespace starting with 'ZZ'. Problem :- When i try to maintain the master data
-
Search API Documentation Insufficient
I'm trying to retrieve information about Movies & TV Shows using the search api. I can get basic information using: https://itunes.apple.com/search?media=tvShow&entity=tvEpisode&term=breaking+bad& country But I can't get additional information like
-
Client proxy data not reaching XI ?
Hi Guys, I have a scenario proxy-soap asynchronus. when i execute the report on the R/3 side the report executes successfully and in the sxmb_moni receiver which is IE of xi is not identified and the data is not reaching XI. But when i execute the re