Inserting new task into Office backstage fluent UI with XML

I want to add a new task and associated group to the backstage of PowerPoint using the fluent UI XML method, although the same issue occurs for Excel and Word.

Using the Microsoft-published list of idMso control IDs I've established that the structure of the tab I'm interested in as as shown below:

PowerPoint backstage, Export tab
So to append a new task control to the end of the collection of 5 built-in tasks, this is the XML I'm using:

<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">
	<backstage>
		<!-- Office Export Tab -->
		<tab idMso="Publish2Tab">
			<firstColumn>
				<taskFormGroup idMso="PublishGroup">
					<category idMso="FileTypes">
						<task id="myTask" label="My Task">
							<group id="myGroup" label="My Group"/>
						</task>
					</category>
				</taskFormGroup>
			</firstColumn>
		</tab>
	</backstage>
</customUI>

Open in new window


But when loading the project containing this same XML in PowerPoint, Excel or Word, I get this error:

Failed to find Office control by ID
ID: PublishGroup

I know the control ID is correct, even it it's swapped regarding Microsoft's normal naming convention because if I try taskFormGroup idMso="GroupPublish", I get the expected unknown error message instead:

Unknown Office control ID: GroupPublish

So do I have the XML structure wrong?
LVL 14
Jamie GarrochPowerPoint Consultant & DeveloperAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ste5anSenior DeveloperCommented:
Take a look at Gunter's RibbonCreator.
1
Jamie GarrochPowerPoint Consultant & DeveloperAuthor Commented:
Thank you for the link ste5an. That looks to be a useful tool for designing the <ribbon> part of the customUI but it doesn't appear to support the <backstage> development?
0
Jamie GarrochPowerPoint Consultant & DeveloperAuthor Commented:
I found the solution after sleeping on it! There are two idMso controls containing the word 'publish' as follows:

idMso "TabPublish" = Export tab in backstage
idMso "Publish2Tab" = Publish tab in backstage

I was using the wrong one which is why the idMso PublishGroup wasn't found.
0
ste5anSenior DeveloperCommented:
According to Customizing Office 2013 backstage it is TabPublish.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ribbonx

From novice to tech pro — start learning today.