Skip to main content

#DX Packaging0 人正在讨论

It can always be a daunting task to take an existing Unpackaged metadata and migrate it to DX. Well, not anymore...

 

Use the power of Graph Databases to carve out package boundaries, for your unpackaged metadata.

 

You don't need to be an expert in Graph Databases. The following npm package takes care of exporting metadata dependencies in a format that can be directly imported into Neo4J, a popular Graph Database.

 

https://www.npmjs.com/package/sf-dep-graph

 

Watch how easy it is to take a sample application, and migrate it to DX, using a simple iterative approach:

 

https://youtu.be/O5UsiJPFPzs

 

#Salesforce Platform #Salesforce Developer #Unlocked Packages #DX Packaging

0/9000

ISV package objects fields are used in custom code base apex classes. To create a unlocked package with apex classes fields which are part of ISV package need to be added to the packaging model. How to add these to DX packaging model?    #DX Packaging #DX Guide #DX Developer Git Deployment

1 个回答
0/9000

We are having trouble upgrading values of a picklist field of a custom object using packaging, Whatever values get installed during the first time stays and no further changes to the value are picked up.

 

Any ideas on whats the process for upgrading values of picklist fields through packaging?

6 条评论
0/9000

Cross-posting from @Unlocked Packages 

 

I have a package that has some Auth Providers in it (source at the end of the post). When first developed I created the Auth Provider in a scratch org then pulled the source with force:source:pull and all was running smoothly. Now it seems I'm not able to push this package anymore to any other scratch org.

 

After executing the first force:source:push to a new scratch org I get an error with the message "You must enter a value" for the Auth Providers. This is only in the first push thou, the following push commands just don't seem to detect any result since returns a "No results found" message.

 

So I have 2 problems here:

 

* Something seems to be missing from the Auth Provider even though I initially created it in a scratch org and pulled its source.

* After first failed push, following ones don't even try to push the Auth. Providers (and related Named Credentials) again, like if they didn't exist.

 

Have anyone faced a similar issue?

 

https://github.com/jonathanwiesel/RepoExplorer

 

---

 

Update: I've reviewed the AuthProvider documentation from the Metadata API

https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_authproviders.htm

 

And it seems that for OpenIdConnect provider types some information is mandatory that the force:source:pull didn't retrieve from the scratch org (defaultScopes and userInfoUrl). I tried specifying directly in the source XML then push it to the scratch org but it seems something is still missing (although with this the second issue disappears, it does try to push it every time instead of only the first).

15 条评论
0/9000

Hi

We recently did our first deployment to prod and realised that all the custom profiles were somehow given access to our new objects and app in the package. The package only has permission set meta data nothing to do with profiles. Can anyone explain how this could have happened please?

 

appreciate some help

18 条评论
0/9000

Newbie alert.

 

I have to start working on converting my existing ultimate edition Salesforce Org to a DX project. The issue we have been trying to address is around Namespace. If we have to convert all our existing code in to separate unmanaged packages, would it require to change everything to have namespace and do a complete overhaul of every apex class, trigger, etc? 

 

any pointers to any such documentation?

0/9000

I am working with an org that has 40,000 lines of "beautiful soup" (unpackaged custom apex). I'm ready to move my first bits of code (which have no dependencies) to unlocked packages. If I understand correctly, the best practice is to manage one unlocked package as one github repo. If that's true, ultimately my org will be represented by many github repos. How do we organize this set of repos? I don't think that Github has the concept of a bundle or set of repos that go together.

0/9000

Has anyone tried to promote a second generation (unlocked) package to released yet? I just tried it for the first time today and I am getting the error message:

 

INSUFFICIENT_ACCESS_OR_READONLY: You don't have the correct user perm to promote a package version to released. Ask your Salesforce admin for help

 

Does anyone know what I need to change in my user setup to allow this? I'm already in the System Administrator profile and I am able to create scratch orgs, version packages etc.

5 条评论
0/9000

Hi guys,

 

I have some questions that I cannot seem to have found answer online:

 

1. For what I found, it seems that when installing an unlocked package you need to manually install dependencies (https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_dev2gp_install_pkg_sample_script.htm).

 

Is this something that the CLI will do in the future (similar to what other package managers do like npm or yarn)?

 

2. Can a package depend on another package that is not part of the same sfdx-project, like a library reference for example?

 

Most examples I found seem to have dependencies in the same project but not from remote packages (like the JSON here https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_dev2gp_extract_dependency_info.htm). Again something similar to how other package managers handle installing dependencies by not requiring the dependency to be part of the package being developed but by referencing it.

 

3. Is there a way (or is in the roadmap) to be able to delete a package?

Since many test are being done creating packages would be nice to be able to delete those tests so the Dev Hub is not a test nightmare. 

6 条评论
  1. 2018年10月18日 14:09
    So far there is no check, it will install all the dependencies even if the package is already installed. That could be an improvement for the plugin.
0/9000

@Dileep Burki

Hi Guys, I am wondering if anyone has solved for the issue I am seeing. We have 3 potential packages, these all use the case functionality. The challenge we have is that each module requires the use of a case assignment rule. Within Salesforce we can only have one active assignment rule at a time which means we would need to merge the rules into one, which of course will cause a dependency between all three modules. Has anyone come across a fix for this or any suggestion as to how to solve?

 

Thanks

7 条评论
  1. 2018年10月17日 21:23
    @Brendan McDaniel - the metadata coverage report is the source of truth for what's supported in unlocked packages. For anything else, we will log an investigation on our side to see if it is a bug.
0/9000