How to assign tasks in Approval Workflow to a set of users selected from a Lookup table

Hi all,
I am new to Project Server and I am using Project Server 2013 On premises deployement. Please help me on how to achieve the below scenario:
I have a requirement where, the initial PDP will have 2 fields (Reviewers and Approvers), wherein the engineer himself will select who the reviewer and approver from the Lookup tables.
Now I have to start task process with these selected people for approval.
Say for example , engineer has selected Alice and Bob as 2 reviewers, then
In the workflow I have :
             Start Task process with
Project Data: Reviewers (which is giving error as
[System.ArgumentException: AssignedTo 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) ]
Then I tried logging the value of Project Data: Reviewers, It logged the value as Alice, Bob (which looks pretty good),
Then I tried assigning only 1 person as Reviewer, then also I get the same error.
So can anybody please tell me where I went wrong. Is it not possible to fetch the data from the values selected as Project Data from the Lookup tables ? If not then what is the workaround I can use to achieve this ?
Thanks,
Shanky

Hi Paul,
Yes I am using SP designer for Workflows. And yes, You were right, there was a mismatch in the names of AD account and the Lookup table, now with 1 person selected from the lookup table it is assigning the task properly. However with multiple selection,
it is failing.
As Robert mentioned, the fetched value is a text as "Alice, Bob", which makes 2 usernames as a single text. So when I try to assign a task to this group, which returns value as "Alice, Bob", workflow fails to find such AD user, as it
is an invalid value.
So is there any way I can seperate this out to form 2 different username ? I checked for string extraction function in th Workflow, but nothing helped me for this scenario.
Any input will be helpful.
Thanks,
Shanky

Similar Messages

  • How to assign task to others with an attachment?

    Hi All,
    How to assign task to other with an attachment and field values in the actual InfoPath form?
    In detail, If a InfoPath form has submitted then task should be assigned to a person with an attachment and some field values which are present in InfoPath form.
    How to achieve this scenario?
    Thanks in advance!

    What you describe is a simple approval workflow. SharePoint comes with approval workflows out of the box. 
    When a task is created to approve an item, it does not need to have the attachment that is already in the item. The task will contain a link to the item that needs to be approved, so there is no need to duplicate the file attachment. 
    You may want to read a bit more about the out of the box approval workflows in SharePoint. Start here:  
    Understand approval workflows in SharePoint 2010
    cheers, teylyn

  • How to assign Tasks to other users using Exchange Web Service.

    How to assign Tasks to other users using Exchange Web Service.
    Any workaround also would help

    Hi Glen,
    I am trying to use ExtendedPropertyType and put in UpdaterItemType as in this code as below. Although it is not updating the Owner
    field.
    I have tried it both by Propertyname and PropertyID. Although new custom property's canbe
    added but to change an existing one like 'Owner' ? Would this be the right method.
    2. And Is ProprertyID a fixed value as 0x811f or does it need to be calculated.
    3. Is 'Owner' the right propertname for assigning a task ?
    Thanks a lot.
    Please see code below for reference.
     PathToExtendedFieldType pathExtended = new PathToExtendedFieldType();
                //pathExtended.DistinguishedPropertySetId = DistinguishedPropertySetType.PublicStrings;
                pathExtended.DistinguishedPropertySetId = DistinguishedPropertySetType.Task;
                pathExtended.DistinguishedPropertySetIdSpecified = true;
                pathExtended.PropertyId = 0x811f;
                pathExtended.PropertyIdSpecified = true;
                //pathExtended.PropertyName = "Owner";
                pathExtended.PropertyType = MapiPropertyTypeType.String;
                ciSetAT.ExtendedProperty = new ExtendedPropertyType[1];
                ciSetAT.ExtendedProperty[0] = new ExtendedPropertyType();
                ciSetAT.ExtendedProperty[0].ExtendedFieldURI = pathExtended;
                ciSetAT.ExtendedProperty[0].Item = "[email protected]";
                SetItemFieldType set1 = new SetItemFieldType();
                set1.Item = pathExtended;
                set1.Item1 = ciSetAT;
                UpdateItemType request = new UpdateItemType();
                request.ItemChanges = new ItemChangeType[1] { new ItemChangeType() };
                request.ItemChanges[0].Item = itemId;
                request.ItemChanges[0].Updates = new ItemChangeDescriptionType[2];
                request.ItemChanges[0].Updates[0] = setstart;
                request.ItemChanges[0].Updates[1] = set1;

  • TA24960 How do you set a user photo from your photo library?

    How do you set a user photo from your photo library?

    What version of OS X are you running?

  • How to create publishing custom approval workflow will assign approvers.

    Hi All,
    I am new in sharepoint development.
    I have a page library where we add artical page with different department
    I want to create publishing custom approval workflow will assign approvers based on what department is selected for display.  The departments pull from the Other list.  On that list each department is assigned an approval group. That approval
    group is what should be used for approving the item.
    need send to mail with based on selected department approval group
    thanks in advance.

    Ok, what you're asking for is something that people do all the time, but you say you are new to sharepoint development... So...
    Here's how you would do it in SPD:
    http://blog.symprogress.com/2011/03/sharepoint-2010-dynamic-approvers-for-oob-approval-workflow/
    and here's how you can do it in visual studio:
    http://www.mpspartners.com/2011/10/SharePoint2010ApprovalWorkflowDynamicApprovers/
    Either way should work, it just depends on your comfort level inside the dev environment.
    ieDaddy
    Blog: http://iedaddy.com
    Twit: @iedaddy

  • How to assign task to multiple user & current task in waiting state

    Hi,
    In the workflow i want to assign the tak to multiple user one by one & current task should remain open & should also wait for completion of assigned tasks. for Example - I have Task 1 & Task 2.
    From Task 1, user can assign the Task 2 to different multiple user at the same time or user can assign the Task 2 to different users at some time interval.
    Now, Task 1 user should wait to complete the all Task 2 assignment or Task 1 user can close the Task 2. If Task 2 user is not responding.
    Task 1 should remain in open state till Complete action not taken.
    Please help me how can i achieve the above scenario in BPM11g 11.1.1.6.0

    I think you can sue Workcenter option here. I generally do some coding in User Exit for FM ME_REL_GET_RESPONSIBLE
    which is attached to Rule 20000027.
    For the Release effected step you can add but I think you have to create cuistom Wflow for that. You cannot use WS20000075.
    Thanks
    Arghadip

  • Don't Know How to Activate or Find Approval Workflow Template

    Hi
    I'm using Sharepoint 2013. I want to add an approval workflow but I don't know how, and actually I don't know if it is already installed or I have to install the Approval Workflow template separately?!
    Can anyone tell me how can I overcome this problem?
    Thanks

    Hi,
    According to your post, my understanding is that you wanted to find Approval Workflow Template.
    To activate the Workflow feature, you need to click Site Setting -> under Site Collection Administration, click “Site collection features",  and then activate the "Workflow" feature.
    Then the Approval Workflow Template will be appeared.
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • How to assign "Password Reset AuthN Workflow" to "authNWFRegistered"

    I'm finding a way to assign "Password Reset AuthN Workflow" to all users' "AuthN workflow Registered" attribute. I know we can do it with auto register ps script.  I'm thinking but is there way to configure inbound sync rule to assign
    "Password Reset AuthN Workflow" to reference (DN) "authNWFRegistered" attribute?
    Jason

    You can find the powershell WF activity here: https://fimpowershellwf.codeplex.com/
    Once you install the workflow activity you could do something along these lines:
    - Create an action workflow that uses the powershell activity, put your script in there to register the user for SSPR
    - Create a set that can identify users that are in AD. (Criteria being something like ObjectSid Is Present) 
    - Create a transition in MPR that is triggered when your user enters the set, fire the initial WF 

  • BPEL how to assign task to users which are kept in DB

    Hi,
    I want to integrate users stored in table with worklist. For, this I defined sql authenticator at weblogic myrealm, then I see the users at weblogic console. Then, at jdeveloper I search users at human task editor but I see only default provider users , I dont see db users.
    do you have any idea what am I missing?

    Hi,
    Please check forum subject. This forum is only for SAP Business One user. Apparently you are not. Close your thread and post to a proper forum.
    Thanks,
    Gordon

  • How to assign a single role to all the 700 bi users

    Hi all,
    I have created a new roles, which needs to be assigned to all the users in the BI. I have teh list of users but i need to copy all of them manually and assign that users with this role!!
    Is there any way in which i can use any abap programs/ function module were in i can assign this single role too all the list of users in the bi system!!
    Thanks
    Pooja

    Hi Pooja,
    I guess you are lookign for  way to upload the list of 700 users into transaction Su10 instead of copying and pasting them manually (which will need many manual copy pastes since the number of users which can be pasted into SAP in one shot will be limted to 10-20).
    There is a way to upload all 700 into SU10 transaction in a few clicks. Please follow the below steps:
    1.Get the list of all 700 users in say excel or notepad. Copy all 700 users ids (copy entire column in excel using Cntrl+C)
    2. Login to system and go to SU10 tcode.
    3. Click on 'Authorization data" tab in SU10
    4. In next page you will see a tab called "User" --> select the arrow exactly to the right side for multiple selection.
    5. In new window; there is an icon for "Upload from clipboard"(second last icon in bottom of window). Click on it and you will have the list of 700 users uploaded into SAP. In next window click on "select all" and "transfer"
    Now go into change mode in SU10 and paste the role to be added under tab "roles".
    Get back if you face any issues.
    Soumya

  • How to test task of a workflow separately?

    Hi
    Is there any way by which we can test our task individually?
    Any method, tcode or Report?
    Thanks
    Minal

    Thanks Surjit  for the Txn but can you clear me one thing that if i execute a task then  only the task is excuted or what ever the steps that we have after the step whether all are executed.
    Thanks My doubt is clarified  only the task is executed.
    @ Minal
    Yes the Txn which is suggested by Surjit is the righ one you can explicity execute the task only I tested it and checked the workflow log.
    Thanks for sharing @ Surjit
    Make sure you pass all the mandatory parameters which are necessary to execute the method of the task that is included, otherwise it will through a dump.

  • How to use task flow's transaction options with session's user data

    Hi.
    I have custom extension of ApplicationModuleImpl class:
    package test.model
    imports...
    public class CustomAppModuleImpl extends ApplicationModuleImpl {
        public static final String SESSION_VAR = "MySessionVar";
        public CustomAppModuleImpl() {
            super();
        @Override
        protected void prepareSession(Session session) {
            super.prepareSession(session);
            System.out.println("######## " + this.getClass().getName() + ".prepareSession() called.  AM isRoot() = " + isRoot());
            Hashtable userData = session.getUserData();
            if (userData == null) {
                userData = new Hashtable();
            userData.put(SESSION_VAR, "Useless");
        @Override
        protected void create() {
            super.create();
            System.out.println("######## " + this.getClass().getName() + ".prepareSession() called.  AM isRoot() = " + isRoot());
    }Inside userData I store some useful session-based values (here is just an example ;) ).
    Within Model.jpr I defined that every Application Module I create must extends this CustomAppModuleImpl :
       <value n="oracle.jbo.extends.appModule" v="test.model.CustomAppModuleImpl"/>
    ...I have one AM with one view:
    package test.model;
    import oracle.jbo.server.ViewObjectImpl;
    // ---    File generated by Oracle ADF Business Components Design Time.
    // ---    Wed Mar 07 20:22:11 CET 2012
    // ---    Custom code may be added to this class.
    // ---    Warning: Do not modify method signatures of generated methods.
    public class AppModule1Impl extends CustomAppModuleImpl {
         * This is the default constructor (do not remove).
        public AppModule1Impl() {
         * Container's getter for EmployeesView1.
         * @return EmployeesView1
        public ViewObjectImpl getEmployeesView1() {
            return (ViewObjectImpl)findViewObject("EmployeesView1");
    }Now I have BTF (bounded task flow, with default properties) and I call that task flow on a button press. With default properties ( Transaction: <No Controller Transaction> ) I get preferred values from session's userData within Entity Object.
    Code snippet inside that entity implementation looks like:
            DBTransaction dbt = getDBTransaction();
            System.out.println(getClass().getName() + " entity lives AM: " + dbt.getRootApplicationModule().getClass().getName());
            if (dbt.getSession().getUserData() == null) {
                System.out.println(CustomAppModuleImpl.SESSION_VAR + " -> NULL");
            } else {
                System.out.println(CustomAppModuleImpl.SESSION_VAR + " -> " + dbt.getSession().getUserData().get(CustomAppModuleImpl.SESSION_VAR));
    ...And as I mentioned output is correct:
    test.model.EmployeesImpl entity lives AM: test.model.AppModule1Impl
    MySessionVar -> UselessNow the trickiest part. As soon as I change property of called task flow Transaction to something else that +<No Controller Transaction>+, e.g. Always Begin New Transaction, code snippet from task-flow.xml :
        <transaction>
          <new-transaction/>
        </transaction>
    ..This session stuff begin to act unpredictably. Session's userData is now null. And Output looks like:
    test.model.EmployeesImpl entity lives AM: oracle.jbo.server.ApplicationModuleImpl
    MySessionVar -> NULLWhy in the world ADF uses oracle.jbo.server.ApplicationModuleImpl instead of test.model.AppModule1Impl or at least my defined test.model.CustomAppModuleImpl ?!?
    Is this a bug? Or maybe a feature?
    10x
    Regards

    Hi,
    Why in the world ADF uses oracle.jbo.server.ApplicationModuleImpl instead of test.model.AppModule1Impl or at least my defined test.model.CustomAppModuleImpl ?!?
    Is this a bug? Or maybe a feature?
    ADF BC alwyas has a transaction opened even if the ADFc setting is No Transaction. So if you explicitly ask for a new transaction I assume that the ADF BC data control creates a new transaction without re-executing your AM initialization codes. Looks as if it uses an internal AM instance for this just to hold the transaction. However, worth filing this as a bug - assuming you reproduced this with a later version of either JDeveloper 11g R1 or R2
    Frank

  • How to select from multiple output tables in the SAP Data Source

    Hi,
    We're using the SAP Data Source to display SAP data in our portal from the Bapi: BAPI_INFORECORD_GETLIST. When defining the Bapi Meta Data we can select data from one of the two output tables (INFORECORD_GENERAL and INFORECORD_PURCHORG). But we want to select data from both tables (some columns we want to show are in INFORECORD_GENERAL and some are in INFORECORD_PURCHORG) .
    How can we do this ?
    With regards,
    Ramon van der Weiden

    You can query multiple TimesTen databases, but your original question was about joining tables from two databases, which is not supported.
    Using Cache Connect to Oracle to query an Oracle database is not distributed. It's still one single Oracle database you are querying. You cannot join a table in the TimesTen database with a table in the Oracle database, this is not allowed.
    If you are willing to share your business requiremens, we can take a look and see what solution might work for you. Would you like to discuss this offline?
    Susan

  • How to let the user select from more then 1 data templet file to fillin a field

    help i have a form the has 5 free form text fields that i need to select from a list of texts to fill it in and then allow the user to add to the data.
    thanks

    thanks here are 2 strings
    COPD continue O2 by NC/Albuterol MDI/ Atrovent MDI/ Duonebs/ Albuterol MDI/ Prednisone taper/ IV Solumedrol/ Spiva/ Advair diskus/ oximetry prn/ PT/ OT/ Coreg
    CAD/ANGINA  cont. O2 by NC?baby ASA/ ASA/ Lopressor/Atenolol/ Lisinopril/ Low fat diet/ PT/OT/ sublingual nitroglycerin prn/ Lasix/ Lipitor/ Zocor/ Mevacor
    i would like the user to be able to select from inside of the field when it is blank (fisrt time entering data)
    thanks again

  • How to add a dummy row in the result set of a SELECT statement.

    Hello Everyone -
    I have requirment to add a dummy row in the result set of a SELECT statement.
    For e.g. lets say there is a table Payment having following colums:
    Payment_id number
    status varchar2(10)
    amount number
    payment_date date
    so here is the data :-
    Payment_id Status Amount payment_date
    1 Applied 100 12/07/2008
    2 Reversed 200 01/ 06/2009
    3 Applied 300 01/ 07/2009
    Here is my SQL
    Select * form payment where payment_date >= 01/01/2009
    Output will be
    2 Reversed 200 01/ 06/2009
    3 Applied 300 01/ 07/2009
    My desired output is below
    2 Reversed 200 01/ 06/2009
    3 Applied 300 01/ 07/2009
    2 Reversed -200 01/ 06/2009 ------(Dummy Row)
    Thrid row here is the dummy row which I want to add when status is "Reversed"
    I would be very thankful for any kind of help in this regard ...
    Thanks,
    Gaurav

    Cartesion joining against a dummy table is a useful method of creating a dummy row:
    with my_tab as (select 1 cust_id, 1 Payment_id, 'Applied' Status, 100 Amount, to_date('12/07/2008', 'mm/dd/yyyy') payment_date from dual union all
                    select 1 cust_id, 2 Payment_id, 'Reversed' Status, 200 Amount, to_date('01/06/2009', 'mm/dd/yyyy') payment_date from dual union all
                    select 1 cust_id, 3 Payment_id, 'Applied' Status, 300 Amount, to_date('01/06/2009', 'mm/dd/yyyy') payment_date from dual union all
                    select 2 cust_id, 1 Payment_id, 'Applied' Status, 100 Amount, to_date('12/07/2008', 'mm/dd/yyyy') payment_date from dual union all
                    select 2 cust_id, 2 Payment_id, 'Reversed' Status, 200 Amount, to_date('01/05/2009', 'mm/dd/yyyy') payment_date from dual union all
                    select 2 cust_id, 3 Payment_id, 'Applied' Status, 300 Amount, to_date('01/06/2009', 'mm/dd/yyyy') payment_date from dual union all
                    select 2 cust_id, 4 Payment_id, 'Reversed' Status, -400 Amount, to_date('01/06/2009', 'mm/dd/yyyy') payment_date from dual union all
                    select 2 cust_id, 5 Payment_id, 'Applied' Status, 500 Amount, to_date('01/07/2009', 'mm/dd/yyyy') payment_date from dual),
                    --- end of mimicking your table
          dummy as (select 'Reversed' col1, 1 rn from dual union all
                    select 'Reversed' col1, 2 rn from dual)
    select mt.cust_id,
           mt.payment_id,
           mt.status,
           decode(dummy.rn, 2, -1*mt.amount, mt.amount) amount,
           mt.payment_date
    from   my_tab mt,
           dummy
    where  mt.status = dummy.col1 (+)
    order by mt.cust_id, mt.payment_id, dummy.rn nulls first;
    CUST_ID     PAYMENT_ID     STATUS     AMOUNT     PAYMENT_DATE
    1     1     Applied     100     07/12/2008
    1     2     Reversed     200     06/01/2009
    1     2     Reversed     -200     06/01/2009
    1     3     Applied     300     06/01/2009
    2     1     Applied     100     07/12/2008
    2     2     Reversed     200     05/01/2009
    2     2     Reversed     -200     05/01/2009
    2     3     Applied     300     06/01/2009
    2     4     Reversed     -400     06/01/2009
    2     4     Reversed     400     06/01/2009
    2     5     Applied     500     07/01/2009Edited by: Boneist on 07-Jan-2009 23:10
    NB. You may have to mess around with the ordering if that's not come back in the order you wanted. You didn't mention what the rules were for any expected ordering though, so I've made up my own *{;-)
    Also, I added an identifier (cust_id) to differentiate between different sets of payments, since that's usually the case. Remove that if it's not applicable for your case.

Maybe you are looking for

  • IBooks books "Cannot Download" because "there is not enough available storage to download _______."

    Before I begin, here are the details of my particular iPad: Build Version: 10B329 iOS 6.1.3 16 BG iPad 2 (although it says that the capacity is 13.84 GB) It has never been damaged nor has it experienced any water damage. It runs very well. My issue:

  • Probably a stupid question, so should be easy answer! : )

    Okay, I have a mac.com email address.  I just moved everything over to iCloud.  Does this now mean my email address changes to [email protected] or can I continue to use the @mac.com?  Are they interchangeable or what is the deal?  I want to keep mac

  • Slow speed during peak hours for over a year

    For over a year now my connection speed has slowed during peak hours, at first it would start around 6pm and drop to 5meg or so untill midnight at which point it would go back up to 8meg all night and morning. As the year has gone on it has gotten wo

  • LOB Integration

    Kindly help me.I need to save files as whole in database.Can i use LOB? If I can then how? If not then what datatype can i use?The file can be in any format like word document , RTF document ,text file etc...Kindly tell me a way to store these type o

  • How can I reinstall Adobe CS5.5 Standard?

    I purchased Adobe CS5.5 Standard for Mac. I need to reinstall it on my computer. But cannot find how to do so. It does not appear in "My Order History." But I do have the serial number.