-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suggestions shane:object:field #18
Comments
Cool, thank you for using and feedback!
Another approach to this would be to spit out some useful text, kinda like object:create does where it gives you the start of a command for creating the fields. What if (spitballing) the results gave you something to cut and paste (like the perms commands for your new field) when your field gets created? other field types: what would you want? Picklists are probably the main thing I have to go in and mess with now that I think a cli would do well. I thought about doing formulas, but the formula builder UI is pretty good (validate, etc) that I feel like it would be harder to type one exactly correct using the cli then just opening the org and doing it the normal way. |
OK, yes, remove the idea to auto give the permission, that sounds dangerous. Yes the --permission flag would be to go with the Permset you would need to state which permset and whether the new field is read only or read-write in that permset. Ooh yes, having the text generated that will add the field to the profile or Perm Set would be great. Also Report Type please! (Why oh why isn't there a UI button to add to Perm Sets and Report Types when creating fields!!!) Yeah, I still have not wrapped my head around Perm Set wrangling in metadata due to the high likelihood of completely stuffing up a profile if deploying it from a Sandbox. I don't like touching them, so it's easier to do it all manually via the UI. Yeah, I don't know much about the deploy on save feature yet, and if it's ready for prime time, but it would be a nice option to include if you think it could work. |
Yes, I fully agree - but even creating a base formula with True or 0 or "Text" or something would be handy just to get going. It's really handy to create fields this way when you are bulk creating fields, so even if there was a placeholder formula it would still be a nice way to bulk create the fields. Eg, fields I do regularly are creating a heap of fields to store DLRS rollup results, then do a formula to use those results - eg Sum of Opportunities Won Product X, Sum of Opportunities Won Product Y, then Has Product X (Sum of Opportunities Won Product X > 0), Has Product Y (Sum or Opportunities Won Product Y > 0) - all of these helper formulas to help with reporting and visualising things on the page. Eg I might do an Indicator field with a logo of the product on the Account record so you can see at a glance that this Account has purchased Product X. |
@JodieM for item 2/3 It's still always doing R/W on the fields, but at least it's a start . :) |
Oh nice one, thanks Shane! |
Is there a reason you didn't add currency for type? I often have to add currency fields to objects and I don't see how I can achieve that with the plugin. I can use number and then go an manually change them. Anyways currency would also be nice. Thanks. |
@hcabnettek no reason, other than, "hadn't needed it yet, myself." |
@hcabnettek currency added in 4.12.0 |
Awesome thanks! I was looking at the Typescript file. It seemed fairly straightforward. I need to do Percentage now. Probably exactly what you did for currency. Thanks again. 👌
Sent from my T-Mobile 4G LTE Device
Get Outlook for Android<https://aka.ms/ghei36>
…________________________________
From: Shane McLaughlin <[email protected]>
Sent: Thursday, December 5, 2019 2:03:25 PM
To: mshanemc/shane-sfdx-plugins <[email protected]>
Cc: ck <[email protected]>; Mention <[email protected]>
Subject: Re: [mshanemc/shane-sfdx-plugins] Suggestions shane:object:field (#18)
@hcabnettek<https://github.com/hcabnettek> currency added in 4.12.0
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#18?email_source=notifications&email_token=AACIHGLLIGTRZEDTBD5BRSDQXF3C3A5CNFSM4GU3PVQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGCJZWQ#issuecomment-562339034>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AACIHGIYGKJYK35TAP7SQLLQXF3C3ANCNFSM4GU3PVQQ>.
|
go for it. |
picklists are in, finally. |
I LOVE this command. I have always used an XML generator to generate bulk fields so this is really nice too.
Can you please add the following to shane:object:field
Of course handling other field types and formulas would be fab, but I bet there is a reason that you can't do that.
The text was updated successfully, but these errors were encountered: