GVKun编程网logo

SAP Marketing Cloud dynamic customer profile的作用(sap consumer industry cloud)

4

本文将为您提供关于SAPMarketingClouddynamiccustomerprofile的作用的详细介绍,我们还将为您解释sapconsumerindustrycloud的相关知识,同时,我们

本文将为您提供关于SAP Marketing Cloud dynamic customer profile的作用的详细介绍,我们还将为您解释sap consumer industry cloud的相关知识,同时,我们还将为您提供关于'WhereIterable>' 不是类型 'List>' 的子类型、Firebase/Flutter:编译器读取 map 作为 map 无法解决:/、Flutter FCM CastMap、Flutter Unhandled Exception: type '(dynamic) => dynamic' 不是类型 '(dynamic) => bool' of 'test' 的子类型的实用信息。

本文目录一览:

SAP Marketing Cloud dynamic customer profile的作用(sap consumer industry cloud)

SAP Marketing Cloud dynamic customer profile的作用(sap consumer industry cloud)

The marketing expert plans an email campaign to launch a new product. An account executive calls the marketing expert and asks to include a specific customer in the campaign. The marketing expert is interested in a 360° view of this customer, and looks for a contact person.

By accessing the corporate account details, the marketing expert can analyze the company of the customer. The contact profile allows the marketing expert to analyze the interest of a single person, and to find the right contact person.

Using the Profile Dashboard, the marketing expert can analyze interest and trends of all contacts.

clipboard1

In Sentiment Engagement, the marketing expert can analyze and process data that has been harvested from internal or external channels.

clipboard2

With Customer Journey Insight, marketing experts can explore the sequence of interactions performed by customers over time, using various channels, such as social media and phone. Interactions such as clicked ads and opened emails can be analyzed.

clipboard3

Using the Analytics and Reports Gallery, marketing experts can run analytics stories, and reports based on predefined CDS views. For more information, see section Analytics.

clipboard4

clipboard5

clipboard6

要获取更多Jerry的原创文章,请关注公众号"汪子熙":

本文同步分享在 博客“汪子熙”(CSDN)。
如有侵权,请联系 support@oschina.cn 删除。
本文参与“OSC源创计划”,欢迎正在阅读的你也加入,一起分享。

'WhereIterable<Map<dynamic, dynamic>>' 不是类型 'List<Map<dynamic, dynamic>>' 的子类型

'WhereIterable>' 不是类型 'List>' 的子类型

如何解决''WhereIterable<Map<dynamic, dynamic>>'' 不是类型 ''List<Map<dynamic, dynamic>>'' 的子类型

有人请帮忙...我快被这个气疯了!

如果我有:

  1. void main() {
  2. List<Map> people = [];
  3. people.add({''name'': ''Patrick'',''age'': 56});
  4. people.add({''name'': ''Jeannette'',''age'': 55});
  5. print(people.where((person) => person[''name''] == ''Patrick''));
  6. }

正如预期的那样,输出是: ({姓名:帕特里克,年龄:56})

但是如果我把 where 放在一个类中,就像这样:

  1. class People {
  2. List<Map> people = [];
  3. void add(Map data) {
  4. people.add(data);
  5. }
  6. List<Map> get filtered {
  7. return people.where((m) => m[''name''] == ''Patrick'');
  8. }
  9. }
  10. void main() {
  11. People people = People();
  12. people.add({''name'': ''Patrick'',''age'': 55});
  13. print(people.filtered);
  14. }

我得到: 未处理的异常: 类型 ''WhereIterable>'' 不是类型 ''List>'' 的子类型 #0 People.filtered (file:///C:/Flutter/apps/mapDB/scratch.dart:9:5) #1 main (file:///C:/Flutter/apps/mapDB/scratch.dart:19:16) #2 _delayEntrypointInvocation。 (dart:isolate-patch/isolate_patch.dart:283:19) #3 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12)

Firebase/Flutter:编译器读取 map<String, dynamic> 作为 map<dynamic, dynamic> 无法解决:/

Firebase/Flutter:编译器读取 map 作为 map 无法解决:/

如何解决Firebase/Flutter:编译器读取 map<String, dynamic> 作为 map<dynamic, dynamic> 无法解决:/

我正在使用 Firebase 创建身份验证服务,并且我有 usermodel 来处理用户数据,我有一个带有函数的类:

  1. class usermodel extends ChangeNotifier {
  2. late String uid;
  3. late String username;
  4. late String email;
  5. late String password;
  6. late String type;
  7. usermodel.empty();
  8. usermodel(
  9. String uid,String username,String email,String password,String type) {
  10. this.uid = uid;
  11. this.username = username;
  12. this.email = email;
  13. this.password = password;
  14. this.type = type;
  15. }
  16. Map<String,dynamic> toMap(usermodel user) {
  17. var data = Map<String,dynamic>();
  18. data["uid"] = user.uid;
  19. data["nickname"] = user.username;
  20. data["email"] = user.email;
  21. data["password"] = user.password;
  22. data["type"] = user.type;
  23. return data;
  24. }
  25. }

还有一个我有验证功能的类:

  1. class AuthenticationService {
  2. final FirebaseAuth _firebaseAuth;
  3. usermodel usermodel = usermodel.empty();
  4. final userRef = FirebaseFirestore.instance.collection(''users'');
  5. AuthenticationService(this._firebaseAuth);
  6. Stream<User?> get authStateChanges => _firebaseAuth.authStateChanges();
  7. Future<void> addUserToDB(
  8. {required String uid,required String username,required String email,required String password,required String type}) async {
  9. usermodel = usermodel(uid,username,email,password,type);
  10. var firebaseUser = FirebaseAuth.instance.currentUser;
  11. await userRef.doc(uid).set(usermodel.toMap(usermodel));
  12. }
  13. }

我有一个错误:

无法将参数类型“Map”分配给参数类型“Map”。

任何想法如何解决它?

我暂时没有使用 usermodel,但我真的很想修复它。

解决方法

案例是我拼错了一个导入,它正在阅读我的旧 result = [] for val in data["quotes"]: if val["exchange"] == "Sydney": result.append(val["url"]) print(result) :D

UserModel 必须是 UserModel 因为 map<String,dynamic> 函数被告知它不能与 set 一起使用。

所以上面的代码很好,对我有用。

感谢您的帮助!

Flutter FCM CastMap<dynamic, dynamic, String, dynamic>

Flutter FCM CastMap

如何解决Flutter FCM CastMap<dynamic, dynamic, String, dynamic>

发送通知时,我有如下嵌套数据:

    message = {
                "notification": {
                    "title": "app notification","body": "new message!"
                },"data": {
                    "info":{
                        "id": message_id,"message": message,"img": img
                }
               }
              }

我这样做的原因是有时 img 为空,我也想发送该信息。如果我将它放在 info 之外,null 值会被丢弃。

当我检查通知数据的 runtimeType 时,我得到 CastMap<dynamic,dynamic,String,dynamic>,我什至不知道那是什么类型的数据。我正在尝试通过执行 Map<String,dynamic> 将其转换为 Map<String,dynamic>.from(event),但它一直告诉我

Unhandled Exception: type ''String'' is not a subtype of type ''Map<dynamic,dynamic>

CastMap<dynamic,dynamic> 究竟是什么,我如何从中提取 event[''data''][''info'']

解决方法

您应该使用 json.decode 将其作为 Map<String,dynamic> 返回。

json.decode(event[''data''][''info''])

Flutter Unhandled Exception: type '(dynamic) => dynamic' 不是类型 '(dynamic) => bool' of 'test' 的子类型

Flutter Unhandled Exception: type '(dynamic) => dynamic' 不是类型 '(dynamic) => bool' of 'test' 的子类型

如何解决Flutter Unhandled Exception: type ''(dynamic) => dynamic'' 不是类型 ''(dynamic) => bool'' of ''test'' 的子类型

我正在从类似这样的 api 获取数据

control + c

我需要做的是在同样有效的数组中添加项目。但我需要做的是我需要添加那些具有 { "Categories": [{ "ID": 1064,"Name": "Pizza","Subcategories": [{ "ID": 87,"CategoryID": 1064,"CategoryName": "Pizza","Items": [{ "ID": 1195,"Name": "Fajita Pizza (S)" "IsFeatured": true },{ "ID": 1196,"Name": "Fajita Pizza (M)" "IsFeatured": true },{ "ID": 1197,"Name": "Fajita Pizza (L)","IsFeatured": false,} ] },{ "ID": 87,"Name": "Fajita Pizza (S)" },"Name": "Fajita Pizza (M)" },"Name": "Fajita Pizza (L)" } ] } ] },{ "ID": 1064,"Subcategories": [{ "ID": 87,"Items": [{ "ID": 1195,"Name": "Fajita Pizza (S)" "IsFeatured": true,},{ "ID": 1196,"Name": "Fajita Pizza (M)" },{ "ID": 1197,"Name": "Fajita Pizza (L)" } ] }] },{ "ID": 1084,"Name": "beverages","Description": null,"Image": null,"StatusID": 1,"LocationID": 2112,"Subcategories": [] } ],"description": "Success","status": 1 }

我在我的另一篇文章中得到了答案

"IsFeatured": true

它在这个答案中显示了这个错误

  data.forEach((category) {
    if (category[''Subcategories''] != null) {
      category[''Subcategories'']
          .where((subcategory) => subcategory.isFeatured)
          .forEach((subcategory) {
        featured[''Featured''].addAll(subcategory[''Items'']);
      });
    }
  });
  print(featured);

添加我的整个函数代码

 Unhandled Exception: type ''(dynamic) => dynamic'' is not a subtype of type ''(dynamic) => bool'' of ''test''

解决方法

这会将所有精选项目添加到 featured 列表

main(List<String> args) {
  List data = api[''Categories''];
  var featured = [];

  data.forEach((category) {
    if (category[''Subcategories''] != null) {
      category[''Subcategories''].forEach((subcategory) {
        subcategory[''Items''].forEach((item) {
          if (item[''IsFeatured''] ?? false) {
            featured.add(item);
          }
        });
      });
    }
  });

  print(featured);
}

const api = {
    "Categories": [{
            "ID": 1064,"Name": "Pizza","Subcategories": [{
                    "ID": 87,"CategoryID": 1064,"CategoryName": "Pizza","Items": [{
                            "ID": 1195,"Name": "Fajita Pizza (S)"
                            "IsFeatured": true
                        },{
                            "ID": 1196,"Name": "Fajita Pizza (M)"
                            "IsFeatured": true
                        },{
                            "ID": 1197,"Name": "Fajita Pizza (L)","IsFeatured": false,}
                    ]
                },{
                    "ID": 87,"Name": "Fajita Pizza (S)"
                        },"Name": "Fajita Pizza (M)"
                        },"Name": "Fajita Pizza (L)"
                        }
                    ]
                }
            ]
        },{
            "ID": 1064,"Subcategories": [{
                "ID": 87,"Items": [{
                        "ID": 1195,"Name": "Fajita Pizza (S)"
                        "IsFeatured": true,},{
                        "ID": 1196,"Name": "Fajita Pizza (M)"
                    },{
                        "ID": 1197,"Name": "Fajita Pizza (L)"
                    }
                ]
            }]
        },{
            "ID": 1084,"Name": "beverages","Description": null,"Image": null,"StatusID": 1,"LocationID": 2112,"Subcategories": []
        }
    ],"description": "Success","status": 1
};

输出:

[{ID: 1195,Name: Fajita Pizza (S),IsFeatured: true},{ID: 1196,Name: Fajita Pizza (M),{ID: 1195,IsFeatured: true}]

我们今天的关于SAP Marketing Cloud dynamic customer profile的作用sap consumer industry cloud的分享已经告一段落,感谢您的关注,如果您想了解更多关于'WhereIterable>' 不是类型 'List>' 的子类型、Firebase/Flutter:编译器读取 map 作为 map 无法解决:/、Flutter FCM CastMap、Flutter Unhandled Exception: type '(dynamic) => dynamic' 不是类型 '(dynamic) => bool' of 'test' 的子类型的相关信息,请在本站查询。

本文标签: