"Update Your Unlocked Package" "GIFter" package "0Ho<id> - Answers - Salesforce Trailblazer Community
Trailblazer Community
Ask Search:
Lakshmikanth KatputurLakshmikanth Katputur 

"Update Your Unlocked Package" "GIFter" package "0Ho<id>

Hi, I am working on the "Update Your Unlocked Package" and unable to find the correct 0Ho<*****> id for "GIFter" package. Any suggestions?
Best Answer chosen by Ravindra (salesforce.com) 
Todd HalfpennyTodd Halfpenny
Yes, it will be blank... the ID will be created following the succesful creation of the package record (not a package version).

Have you run this command in the module yet? And if so what result did you get back?

sfdx force:package:create --name dreamhouse --description "My Package" --packagetype Unlocked --path force-app --nonamespace --targetdevhubusername DevHub

If you have run this, and don't remember the result then perhaps you used a different devhub?

All Answers

Todd HalfpennyTodd Halfpenny
You should be able to find that ID using this CLI command;
sfdx force:package:list

 
Lakshmikanth KatputurLakshmikanth Katputur
Yes, i can see the ID for SalesApps package , but for some reason it is not listing the GIFTer package
 
Lakshmikanth KatputurLakshmikanth Katputur
The app is available for you to use in GitHub: https://github.com/developerforce/GIFter 
The sfdx-project.json is not listing the ID
 
Lakshmikanth KatputurLakshmikanth Katputur
in fact the sfdx-project.json is pretty much blank
 
Lakshmikanth KatputurLakshmikanth Katputur
{
"packageDirectories": [
{
"path": "force-app",
"default": true
}
],
"namespace": "",
"sfdcLoginUrl": "https://login.salesforce.com",
"sourceApiVersion": "50.0"
}
Todd HalfpennyTodd Halfpenny
Yes, it will be blank... the ID will be created following the succesful creation of the package record (not a package version).

Have you run this command in the module yet? And if so what result did you get back?

sfdx force:package:create --name dreamhouse --description "My Package" --packagetype Unlocked --path force-app --nonamespace --targetdevhubusername DevHub

If you have run this, and don't remember the result then perhaps you used a different devhub?
This was selected as the best answer
Lakshmikanth KatputurLakshmikanth Katputur
Thank you Todd Halfpenny, after creating the package using your suggestion, i could able to complete this badge.
Your help is immensely appreciated, a big thank you.



 
Todd HalfpennyTodd Halfpenny
Great stuff, Lakshmikanth. If you could mark the answer as "best answer" then this will mark the topic as sovled and it may then also be helpful to others who run into this issue. Ta, and good luck with the badge!