Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7014613
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:32:40+00:00 2026-05-27T22:32:40+00:00

I’m sorry for asking a double question, but I’m messed up with finding no

  • 0

I’m sorry for asking a double question, but I’m messed up with finding no solution – or a missing understanding of answers.

My problem is like descrided:

I have some self constructed custom ribbons with buttons. And I like to start a workflow if I click on designed button.

Okay, more about settings:

It is a generic list, means, my elemets.xml looks like that:

<CustomAction
  Id="MyCustomRibbonTab"
  Location="CommandUI.Ribbon.ListView"
  RegistrationId="100"
  RegistrationType="List">
  <CommandUIExtension>
    <CommandUIDefintions>
      <CommandUIDefinition
        Location="Ribbon.Tabs._children">
        <Tab Id="Ribbon.CustomTab" Sequence="501">
        ... (Scaling)
          <Groups Id="Ribbon.CustomTab.Groups">
            <Group 
              Id="Ribbon.CustomTab.GroupOne" 
              Sequence="52">
              <Controls Id="Ribbon.CustomTab.GroupOne.Controls">
                <Button
                  Id="Ribbon.CustomTab.GroupOne.ButtonOne"
                  Command="CustomTab.ButtonOneCommand"
                  Sequence="11">
              </Controls>
            </Group>
          </Groups>
        </Tab>
      </CommandUIDefinition>
    </CommandUIDefinitions>
    <CommandUIHandlers>
      <CommandUIHandler
        Command="CustomTab.ButtonOneCommand"
        CommandAction="javascript:alert('how start workflow here?');" />
        />
    </CommandUIHandlers>
  </CommandUIExtension>
  <!-- what about starting workflow here? How? -->
</CustomAction>

Hope it is clear what my XML-Post means. Okay, that works fine if I put CommandAction=”javascript:alert(‘should start a workflow’);” . I mean, this alert pops up and I can click okay, nothing else.

Now I have in same project my workflow designed. There are two types, one with initiation form in asp, the other without, both operating on selected item. I can start them while using the standard ribbon “Workflows” and then click them. Everything is fine so far.

But I want to start each workflow by clicking my button, not having more clicks as it is now. Thank you so far in helping me.

I’m very new on SharePoint. So please include in your answer stuff like “Add new … Empty Element/ JavaScript File” or whatever is neccessary to get what I assume.

If you have more questions about my workflow design, I will answer asap.

Thank you very much,

danbruc

Note: Yes, I just hope that even my Elements.xml is fine. I took all from web. So if yuo have suggestions to redesign, I am open minded. Just blind in seeing the solution.
Additionally, I’m able to put this Tab inside ContextualTab of ListView, but then even javascript is not working.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T22:32:41+00:00Added an answer on May 27, 2026 at 10:32 pm

    Did you read the documentation on Customizing and Extending the SharePoint 2010 Server Ribbon?

    It is very concise and shows you an important points concerning your problem:
    You will need to do a postback to initiate the workflow via serverside code:

    <CommandUIHandler Command="WebPartContextualTabs.OnPostback"
    CommandAction="javascript:__doPostBack('StartMyWorkflowPostBack','');" />
    

    Now what to put in StartMyWorkflowPostBack to start your workflow? There are several resources for this and you will find plenty more via Google:

    • Start Workflow From c# Code
    • Creating new instance of SharePoint workflow through C# code.
    • HOWTO: Start a SharePoint 2010 Workflow Programatically

    Let me explain in short: You did not tell us what kind of workflow. A list based workflow or a site workflow, start methods differ for these. Taking the list workflow as an example you will need to just start the workflow like so:

    SPWorkflowProperties.Site.WorkflowManager.StartWorkflow(listItem, associationTemplate, initData);
    

    But as you can see you will need a lot of stuff for this: The SPListItem, the SPWorkflowAssociationTemplate as well as some initiation data.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
I would like to count the length of a string with PHP. The string
For some reason, after submitting a string like this Jack’s Spindle from a text
I've got a string that has curly quotes in it. I'd like to replace
Seemingly simple, but I cannot find anything relevant on the web. What is the
I have a French site that I want to parse, but am running into
I am currently running into a problem where an element is coming back from
I am trying to render a haml file in a javascript response like so:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.