• gdm1986
  • NEWBIE
  • 0 Points
  • Member since 2018
  • Solution Specialist
  • Zennify

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 3
    Likes Given
  • 0
    Questions
  • 5
    Replies

All of the documented AuthToken methods seem to pass hardcoded values for the Identity Auth. Provider Id (see documentation here: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_class_Auth_AuthToken.htm).

Samples:

String accessToken = Auth.AuthToken.getAccessToken('0SOD000000000De', 'Open ID connect');
Map<String, String> responseMap = Auth.AuthToken.refreshAccessToken('0SOD000000000De', 'Open ID connect', accessToken);the 

I know that using hardcoded Id values in Apex is a no-no, but to get my code up and running, I quickly used hardcoded ID values for Identity Auth Providers in my code. Everything works great in the sandbox, but now that I'm getting ready to deploy to Prod, I'm aware that I'll run into issues. Auth Providers deployed into Production will have a different Id value than those created in the Sandbox. I need to harden the apex code so that it no longer uses these hardcoded Auth Provider ID values.

How can I get the Id value of an Identity Auth Provider regsitered in my org? I don't think I can pull that back with a SOQL statement (similar to how I'd pull back Id values of Profiles, Queues or other objects, can I?

SELECT id FROM ??? 

Thanks for the help, bonus karma points for sample code!

User that logged in customer community is not able to download content version files through this link https://<community-domain>/<community instance>/sfc/servlet.shepherd/version/download/<content document Id>
User license is 'customer portal login user'
Srm content user checkbox is flagged. Gets this error: 
'URL is not found'
Any ideas?

Hello everyone,

Is there a way to get all the values from an aura:iteration element? Both output and input value? I have the following code in my component and I would like to get all the values in the inputNumber field, the {!subset} value and match them together.

<aura:iteration items="{!v.spaceSubsets}" var="subset">
      <p>{!subset}  <ui:inputNumber aura:id="detailRating" label='Rating'/></p>
</aura:iteration>

The end goal here would be to click on a button and have the component insert multiple records into the database.

Bonus point if you could help me figure out how to only create record when a value is entered for one of the iteration.

 

Thank you all.

All of the documented AuthToken methods seem to pass hardcoded values for the Identity Auth. Provider Id (see documentation here: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_class_Auth_AuthToken.htm).

Samples:

String accessToken = Auth.AuthToken.getAccessToken('0SOD000000000De', 'Open ID connect');
Map<String, String> responseMap = Auth.AuthToken.refreshAccessToken('0SOD000000000De', 'Open ID connect', accessToken);the 

I know that using hardcoded Id values in Apex is a no-no, but to get my code up and running, I quickly used hardcoded ID values for Identity Auth Providers in my code. Everything works great in the sandbox, but now that I'm getting ready to deploy to Prod, I'm aware that I'll run into issues. Auth Providers deployed into Production will have a different Id value than those created in the Sandbox. I need to harden the apex code so that it no longer uses these hardcoded Auth Provider ID values.

How can I get the Id value of an Identity Auth Provider regsitered in my org? I don't think I can pull that back with a SOQL statement (similar to how I'd pull back Id values of Profiles, Queues or other objects, can I?

SELECT id FROM ??? 

Thanks for the help, bonus karma points for sample code!

Hi,

Does any one know how to display Chatter feeds based on particular record(Account Record) using <forceChatter:feed>?

Here is the code :
<aura:component implements="force:appHostable">

    <forceChatter:feed type="Record" subjectId="001XXXXXXX"/>	   
 
</aura:component>

Here we are populating the parameters as mentioned in the lightning documentation.
https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/aura_compref_forceChatter_feed.htm
The subjectId is hardcoded with sample account Id.

But the result shows no feeds.

If we change the type to "News", then It shows all the feeds from current user.

We want it to be specific to the Account Id given.

Please help.

Regards,
Sagar Madkaikar

Hello everyone,

Is there a way to get all the values from an aura:iteration element? Both output and input value? I have the following code in my component and I would like to get all the values in the inputNumber field, the {!subset} value and match them together.

<aura:iteration items="{!v.spaceSubsets}" var="subset">
      <p>{!subset}  <ui:inputNumber aura:id="detailRating" label='Rating'/></p>
</aura:iteration>

The end goal here would be to click on a button and have the component insert multiple records into the database.

Bonus point if you could help me figure out how to only create record when a value is entered for one of the iteration.

 

Thank you all.