web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Custom Command using J...
Power Apps
Unanswered

Custom Command using Java script not visible to users

(0) ShareShare
ReportReport
Posted on by 1,123

I as system admin role, have customized command bar by adding a command "Documents" to upload documents using "Run JavaScript Action". After all configuration and publishing the command bar, I can see the custom command but not the end user. Can someone help with how to make it visible to end users. Here are the screenshots of the custom command and configuration.

 

RameshMukka_2-1700843920778.png

 

RameshMukka_3-1700843987373.png

 

function openCustomPageDialog(primaryControl, firstSelectedItemId, selectedEntityTypeName)
{
 // Centered Dialog
 var pageInput = {
 pageType: "custom",
 name: "tms_trademarksdocuments_905b7",
 entityName: selectedEntityTypeName, 
 recordId: firstSelectedItemId 
 };
 var navigationOptions = {
 target: 2,
 position: 1,
	height: {
	 value: 500,
	 unit: "px"
	},
	width: {
	 value: 500,
	 unit: "%"
	},
	title: "Upload Documents"
 };
 Xrm.Navigation.navigateTo(pageInput, navigationOptions).then(
 function () {
 // Refresh the main form when the dialog is closed
 primaryControl.data.refresh();
 }
 ).catch (
 function (error) {
 // Handle error
 }
 );
}

 

 

 

Categories:
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 431

#2
WarrenBelz Profile Picture

WarrenBelz 360 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 280 Super User 2026 Season 1

Last 30 days Overall leaderboard