Can nested IIf be created in custom workflow (in Designer)?

I need to explore building a custom workflow in Designer that will allow me to update a hidden field in the list.  Is it possible for me to recreate the nested IIf statement I have written below?  I'm not seeing how to do get an AND operator in
the workflow designer, nor the nested concept.
TypeOfChange: IIf([status]="active",
IIf([program type]="p", "Primaries Approved",
IIf([program type]="o", "Options Approved",
IIf([program type]="R" Or [award]="AAS-T", "AAS-T Programs Registered",
IIf([apprentice]="a", "Apprenticeships Registered",
IIf([contract]="c", "Contracts Approved",
IIf([College Report Categories]![title]="collaborations", "Collaborations Registered",
IIf([Indiv Program Students] is Not Null, “Individualized Programs”,
IIf([program type]="st","ST Programs Registered")))))))),
IIf([status]="Title changed", "Titles Changed",
IIf([status]="removed",
IIf([program type]="p", "Primaries Deleted",
IIf([program type]="o", "Options Deleted",
IIf([program type]="st", "ST Deleted"))),
IIf([status]="Inactive",
IIf([program type]="p", "Inactive Primaries",
IIf([program type]="o", "Inactive Options")), 
IIf([status]="Reinstated", "Reinstated Programs",
IIf([status]="Pending", "Pending Requests",
IIf([status]="NoI Review", "NoI Review Period",
IIf([status]="Modified", "Curriculum Modifications",""))))))))
There are no mistakes; every result tells you something of value about what you are trying to accomplish.

Hi run4it,
When add multiple compare conditions in workflow condition, it will show the operator AND, then you can try disigning the logic of if else branch sentenses as Andy suggested.
Thanks,
Daniel Yang
Forum Support
If you have feedback for TechNet Subscriber Support, contact
[email protected]
Daniel Yang
TechNet Community Support

Similar Messages

  • SharePoint Designer 2013 crashes when creating a custom workflow...

    I have never had this problem with SPD2010 and the default workflow 2013 templates do not provide the features that I need so creating this workflow using the online UI is not an option.
    I have uninstalled SPD2013 two times now and I have tried creating a new list and I still have the problem.   It's critical for my project that we are able to create custom workflows so this is a HUGE blocker for me so any help would be appreciated.
    Thanks
    Rick

    Did you ever get a response?

  • Is there a way I can use Catalyst to create my custom flex components but make compatible with 3.5

    I am new to Catalyst and looking for a way to create components in Catalyst to be compatible with an existing application created in SDK 3.5.
    I am working on a project for a client to reskin an existing flex application done in SDK 3.5, but they are not ready to migrate yet to SDK 4.0.
    I really want ot use Catalyst to create some custom components for the new style of this existing application, but the problem is the that the spark component architecture and the old version 3.5 are not compatible. Is there a way around this until they are ready to migrate to 4.0 or will I have to create my components in flash and bring them into flashbuilder with a swc this way instead? What would be the best approach for me at this point, please help?

    No. Flash Catalyst leverages the new component framework that was introduced in 4.0 (aka Spark). Flex 3.5 and earlier used a framework (referred to as MX or Halo). That framework is incompatible with Flash Catalyst.
    Chris

  • Is there a way I can use Catalyst to create my custom flex components but make it compatible with SD

    I am new to Catalyst and looking for a way to create components in Catalyst to be compatible with an existing application created in SDK 3.5.
    I am working on a project for a client to reskin an existing flex application done in SDK 3.5, but they are not ready to migrate yet to SDK 4.0.
    I really want ot use Catalyst to create some custom components for the new style of this existing application, but the problem is the that the spark component architecture and the old version 3.5 are not compatible. Is there a way around this until they are ready to migrate to 4.0 or will I have to create my components in flash and bring them into flashbuilder with a swc this way instead? What would be the best approach for me at this point, please help?

    No. Flash Catalyst leverages the new component framework that was introduced in 4.0 (aka Spark). Flex 3.5 and earlier used a framework (referred to as MX or Halo). That framework is incompatible with Flash Catalyst.
    Chris

  • SharePoint 2013 custom workflow using designer

    I am in the need of develop a custom workflow in SharePoint online. Requirement is shown in the below screenshot.
    I am able to create the above mentioned requirement using SharePoint 2010 workflow in SharePoint 2013 Designer.
    But I am not able to implement the above requirement using SharePoint 2013 workflow in SharePoint 2013 designer.
    Above flowchart gives two scenarios.They are
    Approval Scenario- 2 Must approve (First and second only considered, then workflow will be completed)
    Reject Scenario- If any one rejects, then workflow will be terminated.
    I am trying to implement the above flow chart using "Task Process" action available in SharePoint 2013 workflow, but above scenarios
    (1&2) not able to implement at the same time using "Task process".  Available completion criteria is shown in the below screenshot.
    My Question here is:
    Does the above requirement is possible using SharePoint 2013 workflow in designer(Not SharePoint 2010 workflow)?
    Thanks in advance.....
    Anandan M

    Hi
    from you consideration:
    Approval Scenario- 2 Must approve (First and second only considered, then workflow will be completed)
    Create a new column in your list ( approval numbers ) a hidden column ( COL_NO_APPROVALS), default value = 0
    Set your workflow, when a approve is applied to that item, this column will incerment by 1
    Alos include a condition, if COL_NO_APPROVALS = 1 ( this mean is the second approver ), finish the workflow and approve the item completly
    Romeo Donca, Orange Romania (MCSE, MCITP, CCNA) Please Mark As Answer if my post solves your problem or Vote As Helpful if the post has been helpful for you.

  • Custom Workflow SharePoint Designer 2010

    I am have been working to implement a workflow for a company and they asked me to do these steps for their workflow:
    1 - (A) a person will create a document onto the document library. then assign that document to 4 or 5 people for approval.
    2 - The all recipient task must approve the request.
    3 - if one rejects the approval document then it required to  resubmitted again to all approval people untill everyone gets approve it.
    A--->(1,2,3,4)--->(Approve, Approve, Reject, Reject)----->then notify A+(1,2,3,4) for changes need it then----->resubmit to (1,2,3,4) for approval. and keep looping untill (1,2,3,4) people gets (Approve, Approve, Approve, Approve)
    Any good Idea to do that? I do use sharepoint designer and infopath.
    I have tryied oob Approval work flow but after gets approve/ reject it ends the workflow also to reassign a task its just send it to one person only the reassigning is to only one person.
    Please Please Please I need your help. Thank you.

    Hi,
    According to your post, my understanding is that you wanted to execute an Approval Workflow to make all approvers to approve the documents in the end when a new item is created in the document library.
    I recommend that you can create two workflows following the steps as below to implement it in your environment.
    1. Create a List Workflow associated with the document library, add the “Start Approval Process” action into it, then click on “these users” to set the task process participants and choose “All at once (parallel)”.
    2. Right click the action, select Properties, click “ExpandGroups”,change No to Yes. Then you can assign task to each member of the group.
    3. Click on “Approval” in the “Start Approval Process” step to edit the task process, click on “Change the behavior of a single task” in the “Customization”, add the “Send a Task Notification Email” action below the “Else if Current Task: Outcome equals
    Rejected” in the “When a Task Completes” section as below.
    4. Go to “Start Options” of the workflow to check “Start workflow automatically when an item is created”.
    5. Create the second List Workflow associated with the document library, add the “Start Approval Process” action into it, then click on “these users” to set the task process participants and choose “All at once (parallel)”.
    6. Right click the action, select Properties, click “ExpandGroups”,change No to Yes. Then you can assign task to each member of the group.
    7. Click on “Approval” in the “Start Approval Process” step to edit the task process, click on “Change the behavior of a single task” in the “Customization”, add the “Send a Task Notification Email” action below the “Else if Current Task: Outcome equals
    Rejected” in the “When a Task Completes” section.
    8. Go to “Start Options” of the workflow to check “Start workflow automatically when an item is changed”.
    9. Publish the two workflows and test it in your environment.
    The workflow is shown as below:
    Then if a new document item is created in the document library, the first workflow will be triggered to execute the approval task for all approvers.
    When the approval task completes, all approvers will get a task notification email to notify modify the current document for the next approve again if one of them rejects the current document item.
    And, when someone modifies the current document item, the second workflow will be triggered to execute the new approval task for all approvers.
    Also, when the approval task completes again, all approvers will get a task notification email to notify modify the current document for the next approve again if one of them rejects the current document item.
    Best Regards,
    Linda Li
    TechNet Community Support

  • Creating a custom workflow that copies events in a calendar to another one

    Hello,
    I was looking for a
    Calendar displayed in having some
    items from B to A.
    calendar
    So, I suppose That I
    can run a workflow That
    Automatically copies specific events
    calendar and paste it in
    B.
    This is the step-by step
    of the procedure I executed:
    First, I checked That
    Both calendars have exactly
    the same columns.
    Then I added an yes
    / no column in A Calendar
    called "Rollup".
    Since I'm a new SPD in the
    whole world, I Decided
    to use the 2010 plattform,
    beacuse in the 2013 version
    I couldnt find the "Copy
    Item" Action.
    I developed a list workflow
    attached to Calendar A That Says:
    Condition: If Current List:
    Rollup equals Yes
      Action: Copy Item to
    Current Public Calendar
    For an unknown reason, This
    workflow always displays an error, Therefore
    Accomplished never its purpose.
    Does anyone have an idea what I
    am doing acerca wrong?
    Or knows a better workaround
    for syncing two calendars?
    Thanks for the help !

    Hi  Corina,
    For achieving your demand, you  can create a SharePoint  2013 Workflow for Calendar01 as below and it works fine in my test:
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • What webbased tools can I use to create a custom PDF Reader Web App?

    I want to build a webtool that allows user to view PDFs but I also want to add my own toolbar to allow users to do some custom things to the document like select text and return that text to the webapp (built with AJAX). Or maybe insert a bookmark or open multiple PDF documents in multiple windows to compare them.
    What tools do I need to build something like this???
    Thanks!

    I've seen it done with Flex, which means in theory it should work with AIR as well.
    However, the Acrobat SDK would be way out of range for this. You are not allowed to install Acrobat on a web server (section 2.3 of the EULA), so it would have to be entirely separate from the Acrobat SDK, since the SDK is nothing and does nothing without Acrobat installed.
    EDIT: Actually, I believe it was using FlashPaper, not a direct PDF-in-Flash render.

  • Issue in a custom workflow with Approval Type Notification. Urgent

    Hi
    I have created a custom workflow which contains an approval notification.
    If the user approves/rejects the notification I need to update a table column as Approved or Rejected.
    I have created a function activity,say X, which calls a PL/SQL procedure.
    The issue is,
    when the user approves or rejects the notification, the function X errors out even without entering the PL/SQL procedure.
    Following is the error message
    An Error occurred in the following Workflow.
    Item Type = XXYH_UMX
    Item Key = 55
    User Key =USERKEY:55
    Error Name = -6502
    Error Message = ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    Error Stack =
    Wf_Engine_Util.Function_Call(XXYH_UMX_WF_PKG.is_resp_assigned, XXYH_UMX, 55, 242407, RUN)
    Activity ID = 242407
    Activity Label = XXYH_UMX_ASSIGN_RESPONSIBILITY:XXYH_UMX_RESP_ASSIGNED
    Result Code = #EXCEPTION
    Notification ID =
    Assigned User =
    If I go the function from any other function,say Y, (bypassing approval notification) it works fine.
    Can you please help me what could be the issue?
    Thanks,
    Kamath.

    The danger in putting in one activity is that if there is any scope longer-term to expand the process to multiple activities, then it may be better to break it out into a sub-process early in the design phase.
    Generally, you get the feeling from the client fairly early on about whether they have a final design and how likely they are to complicate the process later on :)
    I wouldn't include it as a post notification function myself - it saves a tiny amount of processing time and database space, but at the cost of making it less clear what is happening. Plus you'd need to check the result in the PNF manually - putting it on a conditional branch ensures that you always know what the value is. If the lookup type changes at any stage, you would need to check a PNF to ensure that the code still remains valid; if it's on a branch then the only thing to change would be to change the label on the branch.
    Matt
    WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
    Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
    Have you read the blog at http://www.workflowfaq.com/blog ?
    WorkflowFAQ support forum: http://forum.workflowfaq.com

  • How to use position hierarchy for approval in custom workflow ?

    Dear All,
    I have created a custom workflow which fires when ever a new supplier site is created.
    Now I want to add approval hierarchy in this flow. For that I want to use Position Hierarchy.
    I have not find useful resources for doing that. Can you please help me?
    Regards,
    Rubayat

    Hi;
    Please review:
    How to Create a New Position Hierarchy [ID 437489.1]
    Adding Positions to a Hierarchy from Another Business Group [ID 356127.1]
    How To Determine Position Controlled Organizations In The Hierarchy? [ID 549628.1]
    How Does One Create and/or Update Position and Position Hierarchy in HR Using an API? [ID 736443.1]
    Using AME, How To Create Approval Routing To a Certain Position In HR Position Hierarchy [ID 1501433.1]
    Regard
    Helios

  • Custom workflow plugin timeout after 2 minutes

    Hi all,
    I created a custom workflow which calls external web services but it timeout after 2 minutes on Dynamics CRM 2011 On-Premise. I am using async on-demand workflow settings.  
    I tried to change the registry OLEDBTimeout, ExtendedTimeout, NormalTimeout but with no effect.
    Any advise.  Thanks. 

    Hi Gary,
          It is not a good idea to call external web service from workflow for many reasons. One given here:
    1) If web service is not available, it does not notify user for any failures.
          Can you write the same code in plug-in and check if this works for you? If it does and you still need to have workflow, suggest check the async account running the service and make sure it has enough rights to call web service
    and also make sure async box has internet connection to make the outbound service call.
    Hope this helps.
     Minal Dahiya
    blog : http://minaldahiya.blogspot.com.au/
    If this post answers your question, please click "Mark As Answer" on the post and "Vote as Helpful"

  • Custom workflow - props file service name change

    All,
    I created a custom workflow and registered with OIM with serviceName value as the service name from the SOA composite. I realized that this needs to be changed to RequestApprovalService.
    Has anyone done this, if you can you please list the steps.
    Thanks in advance,
    Prasad.

    I thought of this as well. It may be possible this way also. Since the composite was primarily generated by the OIM provided template, I didn't prefer to do this. The above mentioned method is working, but i will try this as well when i get a chance.
    Regards,
    Prasad.
    Edited by: pk**** on Jun 8, 2011 12:21 PM

  • SCSM 2012 - Problems running script in custom workflow

    Hi all,
    I'm trying to create a custom workflow in the Authoring Tool that will send an email when a ticket in certain queues is unassigned, but I only want this to run during business hours. I've created the PowerShell script, and it runs great on its own.
    However, whenever I try to add any kind of scripting event to a custom workflow, the workflow fails:
    Microsoft.EnterpriseManagement.Common.InconsistentDataException: The requested objects had an unknown management pack. ---> Microsoft.EnterpriseManagement.Common.InconsistentDataException: The call produced inconsistent results. The data on the client
    does not match the data returned from the server. The most likely cause is that client-side cache is out of sync with server data. ---> Microsoft.EnterpriseManagement.Common.ObjectNotFoundException: An object of class ManagementPack with ID %GUID% was not
    found...
    If I create and import a management pack with an empty workflow, the workflow succeeds. If I use the "Add AD DS User to Group", the workflow succeeds. But as soon as I add a scripting event, the workflow fails.
    For testing, I added a PowerShell event with this code: 
    $a=1
    I also added a Command Script event with this code and got the same error as above: ping SomeServer
    I even tried a VBScript, but that caused the workflow to not run at all:
    dim someVariable
    someVariable = "some value"
    I then disabled the VBScript activity and the workflow runs successfully.
    I'm running SCSM 2012 SP1 with UR4. I am copying the .dll file into the SCSM installation directory (which is not in the default location). The GUID referenced in the error code is the GUID for my custom MP.
    This is my first time creating a custom workflow in the Authoring Tool. Can you tell me what I'm missing? Please let me know if you need any more information
    Thanks!
    Marnie

    Thanks, Anders. I had seen that issue in my searches on this problem. I had tried both the manual fix suggested in that post as well as upgrading to UR4 (so I'm on on SP1 UR4). Neither approach made any difference.
    Am I supposed to do anything with the .cs, .xoml, and .xomlx files that also get generated? I noticed that if I move ALL the associated files into the install directory (not just the .dll file), then import the MP, I get a different error. Instead of the
    MP being missing, the error is now:
    System.NullReferenceException: Object reference not set to an instance of an object.
       at Microsoft.ServiceManager.WorkflowAuthoring.ActivityLibrary.WindowsPowerShellScript.Activity_Closed(Object sender, ActivityExecutionStatusChangedEventArgs e)
       at System.Workflow.ComponentModel.ActivityExecutorDelegateInfo`1.ActivityExecutorDelegateOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime)
       at System.Workflow.Runtime.Scheduler.Run()
    This makes it seem like I do need to move ALL the files to the install directory, but maybe now the workflow just doesn't like my code?
    Thanks!
    Marnie

  • Custom Workflow Activity not showing in Plugin Registration

    Could anybody suggest what I am doing wrong here?
    I have created a Custom Workflow Activity using this sample
    Create a custom workflow activity. But this is not showing up as a plugin/activity type in Plugin Registration Tool. See image below:
    My sample code for the activity below:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Activities;
    using Microsoft.Xrm.Sdk;
    using Microsoft.Xrm.Sdk.Workflow;
    namespace TestCustomWorkflowActivity2
    public class SampleCustomActivity : CodeActivity
    protected override void Execute(CodeActivityContext executionContext)
    //Create the tracing service
    ITracingService tracingService = executionContext.GetExtension<ITracingService>();
    //Create the context
    IWorkflowContext context = executionContext.GetExtension<IWorkflowContext>();
    IOrganizationServiceFactory serviceFactory = executionContext.GetExtension<IOrganizationServiceFactory>();
    IOrganizationService service = serviceFactory.CreateOrganizationService(context.UserId);
    Platform
    Dynamics CRM 2013 On Premises v 6.1.2.112 (SP1 UR2 installed)
    Dynamics CRM 2015 Online
    .NET Framework version
    4.0
    Thanks and Regards,
    blog: <a href="http://technologynotesforyou.wordpress.com">http://technologynotesforyou.wordpress.com</a> | skype: ali.net.pk

    Hi,
    I can see only one difference with my code:
    I placed using detectives in namespace:
    namespace Crm_RTB_NewAcc.Workflow
    using System;
    using System.Activities;
    using System.ServiceModel;
    using Microsoft.Xrm.Sdk;
    using Microsoft.Xrm.Sdk.Workflow;
    using Microsoft.Xrm.Sdk.Query;
    public sealed class GetOrgLicense : CodeActivity
    // Define Inputs/Outputs
    [Output("Count")]
    public OutArgument<int> Count { get; set; }
    protected override void Execute(CodeActivityContext executionContext)
    //My code here
    Count.Set(executionContext, 5);
    Try to make same code. It working well. 
    Hi xjomanx,
    I just tried your suggestion, but still the class is not appearing in the plugin registration. Btw, could you please confirm what version of PluginRegistration you are using?
    blog: <a href="http://technologynotesforyou.wordpress.com">http://technologynotesforyou.wordpress.com</a> | skype: ali.net.pk

  • Custom workflow steps in BCC / Prepending hostnames to images in media text

    We need to be able to prepend hostnames to image paths that are inside media internal text (MIT) items.
    We have MITs that contain raw HTML from a 3rd party that get imported into Merchandizer.
    Some of this HTML have <img> tags or reference images in inline <style> blocks, in the form of <img src="/foo/bar/xyz.png" alt="my image" /> or <style> .img { background-image: url(/foo/bar/xyz.png) } </style> respectively.
    We need to be able to programmatically append imgX.mydomain.com to the image paths (where X is calculated by an existing component depending on some custom logic to point the relevant images to the correct web server cluster). Also, the 'img' portion may be 'imgprev' or 'imgstg' depending on the environment. eg: img1.mydomain.com/foo/bar/xyz.png for production & imgstg1.mydomain.com/foo/bar/xyz.png for staging.
    We also need to be able to strip out the domains when the MITs are exported from Merchandizer.
    My initial thoughts were to create a servlet filter with a custom response wrapper to do this, but this is additional overhead at request time we'd rather not have.
    Is there some way we can create a custom workflow step to do this task, where the step would know which environment it was publishing to and programically append the necessary image path?
    Any other suggested approaches welcome.
    We are on 9.4.

    http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

Maybe you are looking for