Hot answers tagged

20 votes
Accepted

Array.push() won't update Lightning Web Component View

If you rebuild the array as below and reassign, the @track sees the change: this.myArray = [...this.myArray, myNewElement]; My guess is that the @track isn't noticing the original push() in the ...
DaveS's user avatar
  • 1,594
11 votes

Array.push() on a @tracked array doesn't cause component refresh in lightning-accordion in LWC

If we create a new array as below, @track sees the change: this.myArray = [...this.myArray, myNewElement]; My guess is that the @track isn't noticing the original push in the array since an array is ...
DaveS's user avatar
  • 1,594
5 votes
Accepted

LWC push fails with error "Cannot find Lightning Component Bundle selector."

Every Lightning Web Component requires component configuration file with file name ending .js-meta.xml This file can be created manually with New File menu item command in VS Code with manual ...
Patlatus's user avatar
  • 16.1k
4 votes
Accepted

SFDX source:push, ignore .LESS and .TS

Specify a .forceignore file in your project root folder. See How to Exclude Source When Syncing or Converting for more information. As a generic example, to ignore LESS files, put the following into ...
sfdcfox's user avatar
  • 481k
3 votes
Accepted

How to know if a push notification has been read or at least delivered in Marketing Cloud?

You can register a listener to be notified. See NotificationManager.NotificationMessageDisplayedListener In your application, you could set a tag (ref. Device/Contact Registration) based on the ...
Bill Mote's user avatar
  • 4,971
3 votes

SFDX won't push to scratch org? No error detail

Posting a follow up so we can close this issue. After @Raul suggested adding --json to my push command, I was able to get the error detail I needed to adjust my push and get it to work. I don't think ...
PatMcClellan__c's user avatar
3 votes

LWC push fails with error "Cannot find Lightning Component Bundle selector."

You can also get this error if you have the component twice in your org. Perhaps an aura component with the same name, or different case in the naming.
Jesús González's user avatar
3 votes
Accepted

sfdx - second generation packages - push custom fields fails silently

This is an unlisted known issue with sfdx. I created a git repository to reproduce the issue and reported it to SFDC in a case; https://github.com/JonnyPower/sfdx-push-bug-20190124 I received the ...
Jonny Power's user avatar
3 votes

Salesforce Marketing Cloud Mobile Push / JB4A SDK: Does anyone have a working iOS solution?

Please verify what kind of push certificate you are using and that is set in the Marketing Cloud App Center. If you are debugging, you MUST use an "Apple Push Notification service SSL (Sandbox)" ...
Jeff Sylvia's user avatar
3 votes

How to track app version of device for MobilePush

You would need to make a custom attribute in your mobile push demographics and update your sdk to pass this information You can then create a mobile filtered list to see which contacts have which ...
EazyE's user avatar
  • 8,305
2 votes

ReadyAimFire and the application class

Take a look at this learning app. In particular, pay attention to the dependencies in the app/build.gradle file and the <application> tag in the AndroidManifest.xml file. Without any data ...
Bill Mote's user avatar
  • 4,971
2 votes
Accepted

Reset the notification badge on iOS

To quote the current documentation (ETPush.h) /** Reset the application's badge number to zero (aka, remove it). Call updateET to refresh the server with the current badge number. Note: updateET may ...
Brian M. Criscuolo's user avatar
2 votes
Accepted

How to add values on array object

I would create a Map<String, List<String>> I'm not too sure what you're trying to do though.. Map<String, List<String>> countryToStateMap = new Map<String, List<String&...
EricSSH's user avatar
  • 4,324
2 votes

SFDX - Having to push multiple times for changes to occur in org

We had similar issue for a long time. Firstly it started with randomly popping no package.xml found error + unknown exceptions time to time. What helped with no package.xml -> creating classes, ...
user1974566's user avatar
  • 2,275
2 votes

Cannot send push notification to iOS device

The primary difference between iOS and Android when dealing with push notifications is the provisioning process and understanding Apple's APNS/Push process. The cause of your opt-out is probably or ...
Tom Brooks's user avatar
2 votes
Accepted

How can I differentiate anonymous in Push

Audience segmentation can be easily done with the use of Tags, Attributes and/or ContactKey. Personalization can also be completed using AmpScript. You could, for instance, say, "Welcome!" (for a ...
Bill Mote's user avatar
  • 4,971
2 votes
Accepted

Lightning Web Component Push Failed

First, you need to create an apex class using below command from command palette, sfdx: create apex class You need to enter your class name, then just press enter to select default directory for ...
Rahul Gawale's user avatar
  • 11.9k
2 votes
Accepted

sfdx force:source:push failing with error: Could not resolve list view column: OPPORTUNITY_SCORE

There is a metadata setting for it documented here For the opportunity Scoring to work it involves installing the Sales Insights Managed package. At this point, this is not Source Tracked so scratch ...
Mohith Shrivastava's user avatar
2 votes
Accepted

Can we hide or explicitly command not to post summary after executing DX commands?

You can save the output in a separate file like this sfdx force:source:push --json > pushed_sources.json This has two advantages: the output remains clear and you have persistent debug ...
Christian Menzinger's user avatar
2 votes

Trigger REST API POST call on Field/Object Update

Callouts aren't supported in triggers, however, you can call @Future(Callout=true) method (docs) or enqueue class that implements System.Queueable, Database.AllowsCallouts (docs) with necessary ...
Mariia Illarionova's user avatar
2 votes
Accepted

SFDX deploy works, but not push?

Your metadata file is not in the correct format. Use force:mdapi:convert to get it in to the correct format. sfdx force:mdapi:convert -r path/to/metadata -d path/to/outputdir I'm actually kind of ...
sfdcfox's user avatar
  • 481k
1 vote
Accepted

Javascript error on push function LWC

You need to change this this.carvalue={value:'',label:'Select Car'}; to this.carvalue=[{value:'',label:'Select Car'}]; In javascript push is available only in array. When you define {} it becomes an ...
Nagendra Singh's user avatar
1 vote

How to retrieve a demographics field in a push notification via ampscript?

Since the MobilePush Demographics is not directly accessible using a Lookup(), what you can do is try to get the data from the _PushAddress Data View. Only problem with that is you can't Look for ...
Zak Ben's user avatar
  • 443
1 vote
Accepted

What is the easiest way to select all Geofence locations for push messages

You'd need to first GET all your locations from the /push/v1/location REST route. And then, either update your existing message using PUT /push/v1/message/{messageId} and passing in your array of ...
Macca's user avatar
  • 8,166
1 vote

MarketingCloudSDK iOS (v6.4.1) Crashes in SFMCNetworkRequest

This crash was a known issue that should have been fixed with the 6.4.1 release. I just looked at your stacktrace, and matched up the line numbers with our code. Those line numbers do not look to ...
tylerjroach's user avatar
1 vote
Accepted

Is there any way to send an in Org Notification to authorized User, when Opportunity Record has Updated

You can do this using Platform Event. Platform events are the event messages (or notifications) that your apps send and receive to take further action. Platform events simplify the process of ...
Tushar Sharma's user avatar
1 vote
Accepted

Scratch Org Login and Pushing to Production

Rolling up information from comments. You are using Scratch Org and that you are building your code against a Scratch Org. Primarily your questions here are: I am concerned that I am connected to my ...
Jayant Das's user avatar
  • 30.3k
1 vote

`sfdx force:source:push` not updating code

I also had the same issue. After speaking with my team they gave me two suggestions: Delete the cache stored in your browser. Within your scratch org, do the following: a) Go to Setup --> Session ...
Salesforce_Noobie's user avatar
1 vote

error when pushing Managed Package into scratch org: ISV

UPDATE: I figured out the issue! I was following the Winter 18 SFDX Developer Guide under Project Setup: Retrieve Source from an Existing Managed Package. I was retrieving the package from the ...
Rachel Mahan's user avatar
1 vote
Accepted

Cannot send push notification to iOS device

I finally found the answer and it was quit simple : On Xcode, I had to go to App Settings -> Capabilities and switch Push Notifications to On. I was following tutorial to generate the right ...
elamy's user avatar
  • 23

Only top scored, non community-wiki answers of a minimum length are eligible