It does not seem possible to convert objects of type CustomPageWebLink
from source to metadata. These objects are stored in main/default/weblinks
. I can push the weblinks to a new scratch org and they are created correctly, I can pull new weblinks created in a scratch org to my local source and everything seems to be correct. But I cannot convert these to metadata api, the command:
sfdx force:source:convert -d mdapi-converted-source -n 'package name'
fails with the error:
ERROR running force:source:convert: Component conversion failed: /home/marco/workspace/grooveApex/mdapi-converted-source/Groove/emailservices/test.custompageweblink: Could not infer a metadata type
To reproduce, simply:
- create a scratch org
- From setup, select "Custom Links" and create a new one
- Pull the newly created object locally:
sfdx force:source:pull -u scratchOrg
- Try to convert, you will get the error
I was not able to find any information around this error, other than this GitHub issue but I do want to convert these weblinks! Furthermore, if I ignore them in .forceignore
then I cannot even push them to a brand new scratch org and I need those links for my package to work.
Anybody has a solution?